Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
mdi-like window
Can I create a child window, say, QVBox, with window decorations ? Which can be moved, resized, etc. ?
No, I need/t QWorkspace. For example, I create a child of QGLWidget (QWorkspace by itself is a widget too)
Does your child need to really be MDI? If yes, use the QWorkspace as place holder for other windows. If not give the widget the Qt::WType_TopLevel flag (as well as other needed flags).
A QGLWidget is a widget as others, as it inherits QWidget and can be used in a QWorkspace as a child window.
Never patch not working code. Rewrite it !
Never patch badly designed classes. Recreate them cleanly.
(Excerpts from Computing Bible)
Home of the Lab project
In a KDE program you can alternatively use the more advanced KMdi framework
http://api.kde.org/3.3-api/kmdi/html/classes.html
If you just need another window, you just pass 0 as the widget parent.
Or use it as a child in a QDialog, etc
Cheers,
_
Qt/KDE Developer
Debian User
djanubis: QWokrspace maximezes all windows, but I have maximized QGLWidget and little QVBox (like WinRar's archiving progress)
For Example:
http://sniger25.narod.ru/aa.png