you mean to say your subwindow did not moved with mainwindow or you are talking about resizing?
you mean to say your subwindow did not moved with mainwindow or you are talking about resizing?
Sorry for the confusion.
* the mainframe is fixed
* I moved the subwindow inside the mainframe
* the content of the subwindow (the child widget) did not move along with the subwindow, it was at the original position
sorry but i did not uderstood well.
1. mainframe is fixed (we will call it QMainWindow from now)
2. the subwindow is QMdiSubWindow?
3. the child widget is added as mdiSubwindow->setWidget(childwidget)?
am i right this time?
Yes, you are right.
can you post a screen shot of your application in an error condition (child widget at original position and subwindow at another)
alright,
before moving the child window:
after moving the child window:
![]()
this is very strange... write a minimal compilable example reproducing the error and post the code here... have you tried the application on linux or windows?
Thanks, MrDeath.
The child widget relies on another library (VTK), unless you have this library, otherwise, you will not be able to build.
It seems that my code is fine with Linux. Moreover, it works with previous version of Qt, version 4.4 if remember correctly. It has the same problem with even earlier version, i.e., 4.3.
I guess either Qt or QVTKWidget caused this problem, but I'm not sure what could be the real cause of it.
Bookmarks