class QGoodCentralWidget : public QWidget
QGoodCentralWidget class contains the public API's to control the behavior of QGoodWindow.
Constructor of QGoodCentralWidget, is mandatory pass a valid instance of the parent QGoodWindow.
Destructor of QGoodCentralWidget.
Deprecated function, call QGoodWindow setIconWidth directly.
Deprecated function, call QGoodWindow iconWidth directly.
Deprecated function, call setIconVisibility.
Deprecated function, call iconVisibility.
Set the caption buttons type.
Set the title bar and the central widget unified.
Set the title bar mask, the title bar widgets masks united with this mask.
Set the left title bar widget and returns the previous widget or nullptr if none, delete this widget as needed. If the widget is transparent for mouse, but not it's children's set transparent_for_mouse to true.
Set the right title bar widget and returns the previous widget or nullptr if none, delete this widget as needed. If the widget is transparent for mouse, but not it's children's set transparent_for_mouse to true.
Set the center title bar widget and returns the previous widget or nullptr if none, delete this widget as needed. If the widget is transparent for mouse, but not it's children's set transparent_for_mouse to true.
Set the central widget of QGoodCentralWidget.
Set the alignment of QGoodCentralWidget title on the title bar. Note: If align to center and also set a central title bar widget the title will be aligned to the left.
Set the color of QGoodCentralWidget title bar.
Set the color of QGoodCentralWidget border.
Change the visibility of QGoodCentralWidget title bar.
Change the visibility of QGoodCentralWidget caption buttons.
Change the visibility of QGoodCentralWidget title bar title.
Change the visibility of QGoodCentralWidget title bar icon.
Change the title bar height to height multiplied to current pixel ratio.
Change the caption button width to width multiplied to current pixel ratio.
Returns the caption buttons type.
Returns if the title bar and the central widget are unified.
Returns the left QGoodCentralWidget title bar widget or nullptr if none is set.
Returns the right QGoodCentralWidget title bar widget or nullptr if none is set.
Returns the center QGoodCentralWidget title bar widget or nullptr if none is set.
Returns the QGoodCentralWidget central widget or nullptr if none is set.
Returns the alignment of QGoodCentralWidget title on the title bar.
Returns the QGoodCentralWidget title bar color.
Returns the QGoodCentralWidget border color.
Returns if the QGoodCentralWidget title bar is visible or not.
Returns if the QGoodCentralWidget caption buttons are visible or not.
Returns if the QGoodCentralWidget title bar title is visible or not.
Returns the visibility of the QGoodCentralWidget title bar icon.
Returns the QGoodCentralWidget title bar height.
Returns the QGoodCentralWidget title bar caption button width.
Update the QGoodCentralWidget state, it's called internally and must be called if changing QGoodCentralWidget metrics like hide or show a title bar widget.
Values | Descriptions |
---|---|
Invalid | Invalid state of caption buttons. |
Custom | Hide all ready-to-use captions buttons and use your customs caption buttons. |
CentralWidget | Use QGoodCentralWidget caption buttons. |
Native | Use OS native caption buttons. |
Types of QGoodCentralWidget caption buttons.
Values | Descriptions |
---|---|
Invalid | Invalid state of visibility. |
IconHiddenAcceptMouseInput | Do not show icon, but accepts mouse input to show system menu on Windows. |
IconHidden | Do not show any icon. |
IconOnLeftOfWindow | Show window icon at the left of the window as Windows style. |
IconOnLeftOfTitle | Show window icon at the left side of the title as macOS style. |
Types for the icon visibility of the window.
public static int execDialogWithWindow(QDialog * dialog, QGoodWindow * parent_gw, QGoodCentralWidget * base_gcw, QWidget * left_title_bar_widget, QWidget * right_title_bar_widget, bool title_visible, bool icon_visible)
Utility for showing a modal QDialog with customized title bar and borders. Pass the QDialog and the parent QGoodWindow and optionally a QGoodCentralWidget for mimic it's colors on the new window. Optionally pass a left title bar widget, a right title bar widget and set the visibility of title and icon on the new window.
Generated by Moxygen