View Full Version : MDI design question
mooreaa
3rd July 2008, 06:55
I am wanting to do something like visual studio where I have one active solution, but many open documents associated with the project. How do I handle the "single project" vs multi document design?
Also each document can be of different types IE might be a text file, or another might be a GraphicsView scene. Who/what handles the type of document? I presume this is the QMDISubWindow?
If I make a document a QMDISubWindow, can I ever "float" or detach that window so that its can be displayed outside of the QMDIArea?
Antebios
1st August 2008, 06:06
If I make a document a QMDISubWindow, can I ever "float" or detach that window so that its can be displayed outside of the QMDIArea?
Please let me know if you've solved this? The only thing I can think of is putting the MdiArea inside of a another widget that it itself is the set central widget to the MainForm. Then, that way you can take windows out and not modify the mainwindow. Or, I could just be talking out of my ass.
Let me know if you have found a solution.
mooreaa
1st August 2008, 22:31
Hi there,
Theres two parts to this issue. One is the functionality tied down to the MDI document. You want a hybrid of dock widget and mdi window to achieve some of the functionality.
The other side is managing the documents. You really have to operate both the SDI and MDI at the same time. You want to store the active project and related settings probablly in main window.
The child windows would ultimately be managed by the active project... IE you can close the project and that causes all child windows to be closed.
Some of these things would be much easier to address from Trolltech's side. Especailly when trying to mix/match different systems I would think.
One of the challenges with the MDI setup is that you can't ever float the window (like you can in photoshop outside of the mdi area).
I'm still playing with single window apps at this point. Some of the signals/slots could get a bit confusing to manage with multiple levels to operate on and also with sdi/mdi ideas going on in one doc.
Just my 2 cents
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.