In a Qt application, is there an equivalent to QApplication::setFont that sets the applications default cursor, to be overwritten by setting one on a specific widget?
QApplication::setOverrideCursor overrides all widget specific ones, I want local ones to take precidene over this one, but still use my cursor if I didn't specify one.
A QWidget either uses the cursor specified with QWidget::setCursor or falls-back it's parents' cursor setting. So, simply setting the cursor for your main windows should do the trick.
New top level windows and dialogs will need to have the cursor set when created since their is no parent from which to inherit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With