pyqt_reactive.widgets.shared.responsive_groupbox_title
Responsive title layout for GroupBoxWithHelp.
Functions
Check if responsive wrapping is globally enabled. |
|
|
Globally enable or disable responsive wrapping for all GroupBox titles. |
Classes
|
Responsive title widget that switches between 1-row and 2-row layout. |
- pyqt_reactive.widgets.shared.responsive_groupbox_title.set_wrapping_enabled(enabled: bool)[source]
Globally enable or disable responsive wrapping for all GroupBox titles.
- pyqt_reactive.widgets.shared.responsive_groupbox_title.is_wrapping_enabled() → bool[source]
Check if responsive wrapping is globally enabled.
- class pyqt_reactive.widgets.shared.responsive_groupbox_title.ResponsiveGroupBoxTitle(parent=None, width_threshold: int = 300)[source]
Responsive title widget that switches between 1-row and 2-row layout.
Row 1: [Title] [Help] [inline widgets] Row 2: [Reset All] [Enabled] etc. - only when narrow
- TITLE_GROUP = 'title'
- HELP_GROUP = 'help'
- INLINE_GROUP = 'inline'
- RIGHT_GROUP = 'right'
- add_inline_widget(widget, stretch=0)[source]
Add widget that stays with title in row1 (doesn’t move to row2).
- insert_inline_widget(index, widget, stretch=0)[source]
Insert widget at specific position in row1 (doesn’t move to row2).
This is used for inserting inline widgets at a specific position, such as right after the help button.