Hi
I am using linux ( fedora 8 ) . I need to determine whenevr Capslock is turned ON i need to capture this signal and prompt to user.
Can anybody please suggest how to achieve this?
Thanx
Hi
I am using linux ( fedora 8 ) . I need to determine whenevr Capslock is turned ON i need to capture this signal and prompt to user.
Can anybody please suggest how to achieve this?
Thanx
Listen to the key press event.
You can override the mehod in a derived widget QWidget::keyPressEvent(QKeyEvent*) and check for Qt::Key_CapsLockin QKeyEvent::key().
There are other way to catch event according to your desing, like installing an event filter and filter the event you want with QObject::installEventFilter()
But knowing if the capslock is on without user input is still a mystery for me.
Bookmarks