Hi..
I have a requirement. .. when ever i calling my widget...screen i need to disable the softkeys(left, right) so that no body can access them... could any body help me
Hi..
I have a requirement. .. when ever i calling my widget...screen i need to disable the softkeys(left, right) so that no body can access them... could any body help me
Thanks & Best Regards
Srinivas
try this
Code:QAction menuRight_empty = new QAction(tr(""), this); menuRight_empty->setSoftKeyRole(QAction::NegativeSoftKey); addAction(menuRight_empty); QAction menuLeft_empty = new QAction(tr(""), this); menuLeft_empty->setSoftKeyRole(QAction::PositiveSoftKey); addAction(menuLeft_empty);
Thanks,
Rahul Kulshreshtha
Please choose Notification type as "Instant Email Notification". It must be default.
thanks for reply.. but exit key is not disabling.. i need to disable exit key also .. so that.. no key press event can takeplace..i need urgently..help me.. thanks..
Thanks & Best Regards
Srinivas
I guess you are asking for the red button. I have not tried that. But this may work.
1. Declare protected member like below inside MainWindow
2. Inside it's implementation you can ignore the event that should prevent exiting application (never tried)Code:protected: void closeEvent(QCloseEvent *event);
Code:void MainWindow::closeEvent(QCloseEvent *event) { event->ignore(); // event->accept() works just opposite }
Thanks,
Rahul Kulshreshtha
Please choose Notification type as "Instant Email Notification". It must be default.
wait.. I will tell u my requirement..In my application i have to show some busy.gif animation when ever file opening.. im doing that.. and at the same time..the screen should be transparent and while busy.gif is running no key_strokes should be allowed.. im doing this.. by..calling this->setfocusreason(Qt::Nofocus);.. all is working well but the problem is.. the left and right soft keys still working while process the busy.gif.. so i need to remove/disable both soft keys.. thank u for ur reply..
Thanks & Best Regards
Srinivas
Thank u boss. . this is worked..
if u don't mind.. i have to customize qcalendarwidget.. so that i can add some scheduling bars in each dates.. showing timings of scheduling events.. im doing this through delegate paint method.. but problem is the background color of current date and the selected (focused date) ... the background color is over riding the scheduling bars .. the bars are not appearing at all.. but at the same time the dates are appearing as usual.. help..me.. yaar
Thanks & Best Regards
Srinivas