Class: QgsOptionsDialogHighlightWidget¶
- class qgis.gui.QgsOptionsDialogHighlightWidget¶
Bases:
PyQt5.QtCore.QObject
Container for a widget to be used to search text in the option dialog If the widget type is handled, it is valid. It can perform a text search in the widget and highlight it in case of success. This uses stylesheets.
New in version 3.0.
QgsOptionsDialogHighlightWidget(widget: QWidget = None) Constructor
- Parameters:
widget –
the widget used to search text into
Methods
create a highlight widget implementation for the proper widget type.
- param obj:
Highlight the
text
in the widget.Returns if it valid: if the widget type is handled and if the widget is not still available
reset the style of the widgets to its original state
search for a text pattern and highlight the widget if the text is found
Search for the
text
in the widget and returnTrue
if it was foundReturns the widget
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- createWidget(widget: QWidget) QgsOptionsDialogHighlightWidget ¶
create a highlight widget implementation for the proper widget type. For instance a
QgsOptionsDialogHighlightButton
for button.- Return type:
- Returns:
a
QgsOptionsDialogHighlightWidget
orNone
if there is no implementation for the given widget.- Parameters:
widget (QWidget) –
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- eventFilter(self, obj: QObject, event: QEvent) bool ¶
- Parameters:
obj (QObject) –
event (QEvent) –
- Return type:
bool
- highlightText(self, text: str) bool ¶
Highlight the
text
in the widget.- Return type:
bool
- Returns:
True
if the text could be highlighted.- Parameters:
text (str) –
- isSignalConnected(self, QMetaMethod) bool ¶
- isValid(self) bool ¶
Returns if it valid: if the widget type is handled and if the widget is not still available
- Return type:
bool
- receivers(self, PYQT_SIGNAL) int ¶
- reset(self)¶
reset the style of the widgets to its original state
- searchHighlight(self, text: str) bool ¶
search for a text pattern and highlight the widget if the text is found
- Return type:
bool
- Returns:
True
if the text pattern is found- Parameters:
text (str) –
- searchText(self, text: str) bool ¶
Search for the
text
in the widget and returnTrue
if it was found- Parameters:
text (str) –
- Return type:
bool
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, QTimerEvent)¶
- widget(self) QWidget ¶
Returns the widget
- Return type:
QWidget