pyqt_reactive.widgets.shared.responsive_groupbox_title

Responsive title layout for GroupBoxWithHelp.

Functions

is_wrapping_enabled()

Check if responsive wrapping is globally enabled.

set_wrapping_enabled(enabled)

Globally enable or disable responsive wrapping for all GroupBox titles.

Classes

ResponsiveGroupBoxTitle([parent, ...])

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'
__init__(parent=None, width_threshold: int = 300)[source]
set_title_widget(widget)[source]
set_help_widget(widget)[source]
minimumSizeHint()[source]

Return minimum size - log for debugging.

add_right_widget(widget, stretch=0)[source]
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.

eventFilter(self, a0: QObject | None, a1: QEvent | None) bool[source]
count()[source]

Return total widget count across both rows (for compatibility).

insertWidget(index, widget, stretch=0)[source]

Insert widget at position (for compatibility - adds to inline widgets).

itemAt(index)[source]

Get item at index (for compatibility - from row1).

spacerItem()[source]

Check if there’s a spacer (for compatibility).