Set the default cursor for the application

In Qt application if there is the equivalent of QApplication::setFont , which sets the default cursor for the application, which should be overwritten by setting it to a specific widget?

QApplication::setOverrideCursor overrides any specific widget, I want to take local precidene about it, but I still use my cursor, if I do not have it.

+3
source share
2 answers

QWidget uses a cursor, indicated by QWidget :: setCursor, or rejects the setting parents cursor. Thus, a cursor setting for your main window should do the trick.

New windows and top-level dialog box will need to set the cursor to create, as they are not a parent, from which you can inherit.

+2
source

It's pretty close to what I need, but it seems that it is not inherited by other windows. I think that there is nothing equal setFont, so I have to deal with others individually.

0
source

All Articles