activeWindow control problem
I now have a QWidget, clicking a button in this widget would call another window(A Q3MainWindow).
I have set the show() and setActiveWindow() to the new window, however I found that the new window don't have the control, it just appears as showing the ui, there's no response with any event of the new window(like clicking buttons).
Meanwhile I found that the original window still gain the control(which I don't expect it to do so)
Can anyone tell me what's going on? Or what should I do?
Code:
NewWin *newWin = new NewWin();
newWin->show();
newWin->setActiveWindow();
(NewWin inherits Q3MainWindow)
Thanks
Re: activeWindow control problem
can you show code wher you set up ui for both widget and how you create them?
it would be nice if this code will be compilable. :)
Re: activeWindow control problem
For the NewWin class:
Code:
NewWin
::NewWin(QWidget *parent
) : Q3MainWindow
(parent
){
setupUi(this);
init();
}
Re: activeWindow control problem