class QGoodWindow : public QMainWindow
QGoodWindow class contains the public API's to control the behavior of the customized window.
Constructor of QGoodWindow.
On Windows creates the native window, turns the QMainWindow as a native widget, creates the shadow, initialize default values and calls the QMainWindow parent constructor.
On Linux creates the frame less QMainWindow, use the shadow only to create resize borders, and the real shadow is draw by current Linux window manager.
On macOS creates a QMainWindow with full access to the title bar, and hide native minimize, zoom and close buttons.
Destructor of QGoodWindow.
Returns the window id of the QGoodWindow.
QGoodWindow handles flags internally, use this function only when QGoodWindow is not enabled.
Returns the window flags of the QGoodWindow.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
public inline Q_DECL_DEPRECATED void setMargins(int title_bar_height, int icon_width, int left, int right)
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
public inline Q_DECL_DEPRECATED void setCaptionButtonsHandled(bool handled, const Qt::Corner & corner)
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
Deprecated function scheduled for removal in some future version, don’t use it.
On handled caption buttons, this SIGNAL report the state of these buttons.
Notify that the system has changed between light and dark mode.
Set title bar height for QGoodWindow.
Set current icon width on the left side of the title bar of QGoodWindow.
On Windows, Linux and macOS, returns the actual title bar height, on other OSes returns 0.
On Windows, Linux and macOS, return the actual icon width, on other OSes returns 0.
Rect that contains the whole title bar.
Set the mask for the customized title bar.
Set the location and shape of handled minimize button, relative to title bar rect.
Set the location and shape of handled maximize button, relative to title bar rect.
Set the location and shape of handled close button, relative to title bar rect.
Get the mask for the customized title bar.
Get the location and shape of handled minimize button, relative to title bar rect.
Get the location and shape of handled maximize button, relative to title bar rect.
Get the location and shape of handled close button, relative to title bar rect.
Set fixed size for QGoodWindow to width w and height h.
Set fixed size for QGoodWindow to size.
Set minimum size for QGoodWindow to size.
Set maximum size for QGoodWindow to size.
Set minimum width for QGoodWindow to w.
Set minimum height for QGoodWindow to h.
Set maximum width for QGoodWindow to w.
Set maximum height for QGoodWindow to h.
Returns the QGoodWindow minimum size.
Returns the QGoodWindow maximum size.
Returns minimum width for QGoodWindow
Returns minimum height for QGoodWindow
Returns maximum width for QGoodWindow
Returns maximum height for QGoodWindow
Returns the geometry for QGoodWindow when it's state is no state.
Returns the geometry for QGoodWindow including extended frame and excluding shadow.
Returns the client area geometry.
Returns the client area size, position is always QPoint(0, 0).
Position of the window on screen.
Size of the window on screen.
X position of the window on screen.
Y position of the window on screen.
Width of the window.
Height of the window.
Move the window to x - y coordinates.
Move the window to pos.
Resize the window to width - height size.
Resize the window to size.
Set geometry to pos x - y, width w and height h.
Set geometry to rect.
Activates the QGoodWindow.
Shows the QGoodWindow.
Shows or restore the QGoodWindow.
Shows or maximize the QGoodWindow.
Minimize the QGoodWindow.
Turns the QGoodWindow into full screen mode. Including the title bar.
Hide the QGoodWindow.
Try to close the QGoodWindow, returns true if event is accepted or false otherwise.
Returns if the QGoodWindow is visible or not.
Returns if the QGoodWindow is enabled or not.
Returns if the QGoodWindow is the foreground window or not.
Returns if the QGoodWindow is maximized or not.
Returns if the QGoodWindow is minimized or not.
Returns if the QGoodWindow is in full screen mode or not.
Returns the QGoodWindow state.
Sets the state of the QGoodWindow to state.
Returns the window handle of the QGoodWindow.
Returns the opacity of the QGoodWindow.
Sets the opacity of the QGoodWindow to level. Where 0.0 is fully transparent and 1.0 fully opaque.
Returns the title of the QGoodWindow.
Sets the title of the QGoodWindow to title.
Returns the icon of the QGoodWindow.
Sets the icon of the QGoodWindow to icon.
Returns a copy of the window state to restore it later.
Restore window to previous state geometry.
| Values | Descriptions |
|---|---|
| MinimizeHoverEnter | Minimize button hover enter. |
| MinimizeHoverLeave | Minimize button hover leave. |
| MinimizePress | Minimize button press. |
| MinimizeRelease | Minimize button release. |
| MinimizeClicked | Minimize button clicked. |
| MaximizeHoverEnter | Maximize or restore button hover enter. |
| MaximizeHoverLeave | Maximize or restore button hover leave. |
| MaximizePress | Maximize or restore button press. |
| MaximizeRelease | Maximize or restore button release. |
| MaximizeClicked | Maximize or restore button clicked. |
| CloseHoverEnter | Close button hover enter. |
| CloseHoverLeave | Close button hover leave. |
| ClosePress | Close button press. |
| CloseRelease | Close button release. |
| CloseClicked | Close button clicked. |
Enum that contains caption buttons states when it's states are handled by QGoodWindow.
Returns the QGoodWindow version.
Call this function to setup QApplication for QGoodWindow usage.
Returns if the current system theme is dark or not.
Returns true if system draw borders and false if your app should do it.
Show modal frame less QDialog, inside window child_gw, with parent parent_gw.
Set the app theme to the dark theme.
Set the app theme to the light theme.
Get the global state holder.
Generated by Moxygen