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?

Qt Code:
  1. NewWin *newWin = new NewWin();
  2. newWin->show();
  3. newWin->setActiveWindow();
To copy to clipboard, switch view to plain text mode 
(NewWin inherits Q3MainWindow)


Thanks