Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cursor apper odd in Qt application hyperlinks in various widgets

look that black cursor icon it do not follows the system mouse cursor theme

Any one know how can i fix the icon of cursor ?? The app is done in QT and the widget my mouse hovering in the picture is Qlable , actually its not only the problem here cursor appears same in Qwebkit and some other widgets.

like image 756
bulldog68 Avatar asked Dec 01 '25 16:12

bulldog68


1 Answers

The cursor shape can be set with QCursor::setShape(). It is also possible to set a specific cursor for a specific widget:

yourWidget.setCursor(Qt::ArrowCursor);

and even to override the cursor for your entire application with QGuiApplication::setOverrideCursor(), e.g.

QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor));
like image 74
SingerOfTheFall Avatar answered Dec 04 '25 06:12

SingerOfTheFall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!