suma
13th March 2011, 07:29
hai...
i am facing the problem wile trying to give focus to the widget...
currently i have an application, which uses table widget property of QT... that is developed using QT creator.. the application runs well on my linux PC... now i have cross compiled it for MIPS..
now that.. the application is behaving weirdly...my application(say app2) actually gets launched by one more application, which was running initially(say app1)..
once my application is launched(app2).. it must actually be displayed on the screen directly..
but.. wat actually happening is...my application (app2) is getting displayed on the background of the currently running application(app1)... because of which.. my application (app2) is unable to recieve any of the keyboard events....
when i worked around this... came to know that.. my application window might not be recieving the focus.. bcoz of which its getting displayed on the background....
so i just wanted to know.. how to make my window focused???..
- i tried giving.. requestFocus() at the QT level after Createwindow() and setopacity().. so that it can be applied for all the applications.. but it actually dint work...:(
- so i thought of giving focus at the application level.. i mean.. directly to my appliacation..
but dont know.. how actually should i proceed with this... so need ur help...
any suggestions or advice is most welcome...
thanks in advance...
--------
Regards
Suma
i am facing the problem wile trying to give focus to the widget...
currently i have an application, which uses table widget property of QT... that is developed using QT creator.. the application runs well on my linux PC... now i have cross compiled it for MIPS..
now that.. the application is behaving weirdly...my application(say app2) actually gets launched by one more application, which was running initially(say app1)..
once my application is launched(app2).. it must actually be displayed on the screen directly..
but.. wat actually happening is...my application (app2) is getting displayed on the background of the currently running application(app1)... because of which.. my application (app2) is unable to recieve any of the keyboard events....
when i worked around this... came to know that.. my application window might not be recieving the focus.. bcoz of which its getting displayed on the background....
so i just wanted to know.. how to make my window focused???..
- i tried giving.. requestFocus() at the QT level after Createwindow() and setopacity().. so that it can be applied for all the applications.. but it actually dint work...:(
- so i thought of giving focus at the application level.. i mean.. directly to my appliacation..
but dont know.. how actually should i proceed with this... so need ur help...
any suggestions or advice is most welcome...
thanks in advance...
--------
Regards
Suma