i’m quite new to Qt and i’ve a question.
I’ve got an application with multiple windows/QFrame. I’d like them to only exist within the mainwindow (it’s also the parent gadget). When I move them, I want the to stay within the parent gadget.
- Is is possible ?
- If yes, how ?
I’ve been through the Qt doc and i’ve found nothing. I though maybe a simple option can do that. Or do I have to create a new Widget with customs mouse Event methods ?
Thx
If you want a Multiple Document Interface (MDI) GUI you can use the
QMdiAreaandQMdiSubWindowclasses to implement this. Have a look at the detailed description section ofQMdiAreafor using it with a QMainWindow example, but it also works on any other widget as well.