Hello !
I'ld like to set a cursor when a widget is disabled :
Qt Code:
mywidget -> setEnabled(false); mywidget -> setCursor(Qt::ForbiddenCursor);To copy to clipboard, switch view to plain text mode
It doesn't work. Qt permit that or not ?
Hello !
I'ld like to set a cursor when a widget is disabled :
Qt Code:
mywidget -> setEnabled(false); mywidget -> setCursor(Qt::ForbiddenCursor);To copy to clipboard, switch view to plain text mode
It doesn't work. Qt permit that or not ?
Have you tried to set the cursor first then disable the push button?
yes i tried.
But it cant be the problem, we should set a property whenever we want for a simple case like that.
ok i've got it, we can do that :
http://doc.trolltech.com/4.4/qwidget.html#enabled-prop
Citation:
An enabled widget handles keyboard and mouse events; a disabled widget does not.
Bookmarks