New issue
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
New functionality for assembly preview tooltip #3250
Comments
@Petross404 this sounds like a handy solution, indeed. Please send a PR with it. |
Excellent. I am struggling with some corner cases but since this solution is welcome I will do my best. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I hope you are doing well. Once again I find my self envying a feature of Hopper Disassembler and trying to implement it for Cutter
Cutter
is using aQToolTip
to preview information about the hovered address. This tooltip is "static" meaning that no further interaction can take place with it.Describe the solution you'd like
Hopper
on the other hand uses another approach. Once the user hovers an address, a tooltip will be shown, but if the user scrolls the mouse wheel, this tooltip will change size and the amount of visible information.Since
QToolTip
doesn't provide a way to subclass and re-implement events in the class, I implemented a custom tooltip class myself, by inheriting fromQLabel
, setting window flags, timers etc. Later I will upload this repo in my GH account, so you can view this code.So far my difference from
Hopper
's solution, is thatHopper
accepts the wheel event on top of the address, while in my case the user has to hover the tooltip itself, for the event handling to take place.Hopper:
Let me know what do you think of this approach. I am going to do some polishing and put here a link with the code.
The text was updated successfully, but these errors were encountered: