Skip to content

Conversation

@stklcode
Copy link

@stklcode stklcode commented Jan 26, 2026

Issue

Using the search bar and trying to navigate backwards (click on the "up" button) causes the browser process to crash instantly with the following exception:

AttributeError: type object 'OWebEnginePage' has no attribute 'FindBackward'

Expected behavior should be pretty obvious.

Steps to reproduce

Found on a RangeeOS 12 system running Pykib v3.0.43. Should apply to the latest version as well.

  • run Pykib with any web page
  • press Ctrl+F to open the search bar
  • press the "arrow up" button to search backwards

Analysis

With scoped enums in Qt6 the shortcut QWebEnginePage.FindBackward is no longer valid.

Proposed fix

Passing the qualified enum value QWebEnginePage.FindFlag.FindBackward 1 to the findText() call seems to resolve this issue.

Footnotes

  1. https://doc.qt.io/qt-6/qwebenginepage.html#FindFlag-enum

@stklcode stklcode changed the title - fix backward navigation on ctrl+f search bar fix backward navigation on ctrl+f search bar Jan 26, 2026
With scoped enums in Qt6 a click on the "up" button, i.e. search
backwards causes pykib to crash with an error

    AttributeError: type object 'OWebEnginePage' has no attribute
    'FindBackward'

Passing the qualified enum value QWebEnginePage.FindFlag.FindBackward
resolves this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant