This is a helper class for using the Desktop Window Manager functionality on Windows 7 and Windows Vista. More...
#include <qtwin.h>
Static Public Member Functions | |
static bool | enableBlurBehindWindow (QWidget *widget, bool enable=true) |
Enables Blur behind on a Widget. | |
static bool | extendFrameIntoClientArea (QWidget *widget, int left=-1, int top=-1, int right=-1, int bottom=-1) |
ExtendFrameIntoClientArea. | |
static bool | isCompositionEnabled () |
Chekcs and returns true if Windows DWM composition is currently enabled on the system. | |
static QColor | colorizatinColor () |
Returns the current colorizationColor for the window. |
This is a helper class for using the Desktop Window Manager functionality on Windows 7 and Windows Vista.
On other platforms these functions will simply not do anything.
QColor QtWin::colorizatinColor | ( | ) | [static] |
Returns the current colorizationColor for the window.
enable tells if the blur should be enabled or not
bool QtWin::enableBlurBehindWindow | ( | QWidget * | widget, | |
bool | enable = true | |||
) | [static] |
Enables Blur behind on a Widget.
enable tells if the blur should be enabled or not
bool QtWin::extendFrameIntoClientArea | ( | QWidget * | widget, | |
int | left = -1 , |
|||
int | top = -1 , |
|||
int | right = -1 , |
|||
int | bottom = -1 | |||
) | [static] |
ExtendFrameIntoClientArea.
This controls the rendering of the frame inside the window. Note that passing margins of -1 (the default value) will completely remove the frame from the window.
enable tells if the blur should be enabled or not
bool QtWin::isCompositionEnabled | ( | ) | [static] |
Chekcs and returns true if Windows DWM composition is currently enabled on the system.
To get live notification on the availability of this feature, you will currently have to reimplement winEvent() on your widget and listen for the WM_DWMCOMPOSITIONCHANGED event to occur.