Hi, I insert this QWidget in main.cpp and I move it beside myMainForm (). I'd like, when I move with mouse the windows application, that mw2 moving automatically (and take it beside mainForm); now when I move windows app, the position of mw2 don't change (it is fixed). Is it possible? Are you understand? thanks
Qt Code:
  1. myMainForm w;
  2. a.setMainWidget(&w);
  3. w.show();
  4. QWidget mw2;
  5. mw2.setGeometry(0,0,200,400);
  6. mw2.move(w.mapToGlobal(QPoint(w.width(),50)));
To copy to clipboard, switch view to plain text mode