Skip to content

HelpSearchResultWidget

Base classes

Name Children Inherits
WidgetMixin
prettyqt.widgets.widget

⋔ Inheritance diagram

graph TD
  292803039["qthelp.HelpSearchResultWidget"]
  829357528["widgets.WidgetMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  625385617["gui.PaintDeviceMixin"]
  829357528 --> 292803039
  3227531497 --> 829357528
  2751680898 --> 3227531497
  625385617 --> 829357528
  2751680898 --> 625385617
  2751680898 --> 829357528

🛈 DocStrings

Bases: WidgetMixin

Text browser to display search results.

Source code in prettyqt/qthelp/helpsearchresultwidget.py
class HelpSearchResultWidget(widgets.WidgetMixin):  # , qthelp.QHelpSearchResultWidget):
    """Text browser to display search results."""

    def __init__(self, item: qthelp.QHelpSearchResultWidget):
        self.item = item

    def __getattr__(self, val):
        return getattr(self.item, val)

    @classmethod
    def setup_example(cls):
        core_engine = qthelp.HelpEngineCore("test")
        engine = qthelp.HelpSearchEngine(core_engine)
        widget = engine.get_result_widget()
        # keep the engines alive as long as the widget
        widget.setProperty("engines", [engine, core_engine])
        return widget

    def get_link_at(self, point: datatypes.PointType) -> core.Url:
        if isinstance(point, tuple):
            point = core.Point(*point)
        return core.Url(self.linkAt(point))

:fa-brands-github: Show source on GitHub