We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using ReText 8.0.1 on Ubuntu 22.04.
Enabled the WebEngine renderer option (had to pip install PyQt6-WebEngine). With live preview on.
pip install PyQt6-WebEngine
When hovering over a link, the mouse cursor stays arrow shaped.
The mouse cursor should change into a hand with pointed index finger, as it does in ReText 7.x and in web browsers.
The text was updated successfully, but these errors were encountered:
This could be done in webenginepreview.py by adding QCursor to the from PyQt6.QtGui import line and defining the two cursors:
webenginepreview.py
QCursor
from PyQt6.QtGui import
hand_cursor = QCursor(Qt.CursorShape.PointingHandCursor) arrow_cursor = QCursor(Qt.CursorShape.ArrowCursor)
Then in webenginepreview.py::ReTextWebEnginePreview, once we have the webPage object, hook into it with
webenginepreview.py::ReTextWebEnginePreview
webPage
webPage.linkHovered.connect(lambda value: self.setCursor(hand_cursor if value else arrow_cursor))
Works for me:
MR upcoming, I'll try to use camel case.
Sorry, something went wrong.
Change mouse cursor to pointing hand on link hover (retext-project#623)
e10be10
9f94640
Successfully merging a pull request may close this issue.
Using ReText 8.0.1 on Ubuntu 22.04.
Enabled the WebEngine renderer option (had to
pip install PyQt6-WebEngine
).With live preview on.
Observed behaviour
When hovering over a link, the mouse cursor stays arrow shaped.

Expected behaviour
The mouse cursor should change into a hand with pointed index finger, as it does in ReText 7.x and in web browsers.

The text was updated successfully, but these errors were encountered: