When I use the QT mainWindow, it generates automatically the "Exit" Button. I used addAction, which includes both negtive soft key and positive soft key, intending to overload it, but failed. How am I supposed to do that?
When I use the QT mainWindow, it generates automatically the "Exit" Button. I used addAction, which includes both negtive soft key and positive soft key, intending to overload it, but failed. How am I supposed to do that?
For your reference, Here is a working code snippt from main window class for adding back softkey.
Code:mBackAction = new QAction( tr( "Back" ), this ); mBackAction->setSoftKeyRole( QAction::NegativeSoftKey ); addAction( mBackAction );