madrich
7th September 2018, 10:04
Hi,
I'd like to attach a small text based info box to the mouse cursor, when I use a special tool in my application.
My first idea was to use QLabel without a parent and move the QLabels position to the cursors location.
To have a more general code, it would be easier to create a custom QCursor handling the text box and replace the QApplications QCursor. Unfortunately, there is a function setOverrideCursor for QGuiApplication only, that will be used already at different locations.
Is there any way how to set the standard cursors Instance?
Thanks
I'd like to attach a small text based info box to the mouse cursor, when I use a special tool in my application.
My first idea was to use QLabel without a parent and move the QLabels position to the cursors location.
To have a more general code, it would be easier to create a custom QCursor handling the text box and replace the QApplications QCursor. Unfortunately, there is a function setOverrideCursor for QGuiApplication only, that will be used already at different locations.
Is there any way how to set the standard cursors Instance?
Thanks