You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 a QToolTip 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 from QLabel, 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 that Hopper 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:
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: