[Qt-interest] MID/SDI
Justin Noel
justin at ics.com
Mon Jan 18 22:13:21 CET 2010
John Weeks wrote:
> Still ramping up on a Qt port of my company's application...
>
> Our application is more or less an IDE for making scientific
>
> Presently we run on Macintosh more or less as an SDI application. We have
> lots of different kinds of windows, and a session can have zero to many
> windows of every type. The menu bar is changed to reflect whatever kind of
> window has the focus.
>
> On Windows we run as an MDI application, with all these various window
> types inside an MDI window.
>
> It is my sense that these choices reflect what people using these platforms
> generally want. So, my question...
>
> Is it easy/possible to write a Qt application that can choose at run-time
> whether to be an MDI or SDI application?
>
> In looking at the MDI and SDI examples, it seems like this is a pretty
> fundamental choice. The subwindows for an MDI application are
> QMdiSubWindows; the windows for a SDI application are QMainWindows (or
> something else derived from QWidget).
>
> If this is possible, can you suggest a strategy?
>
>
While not a "simple example", check out the source to Designer the GUI
builder that comes with Qt. It switches MDI/SDI at runtime.
Good luck,
--Justin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: justin.vcf
Type: text/x-vcard
Size: 233 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100118/c12f00a5/attachment.vcf
More information about the Qt-interest-old
mailing list