Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 9

Qt-interest Archive, March 2002
Dialog application


Message 1 in thread

I would like to write an application that does not use a main window.
Instead the application consists of a series of dialog boxes that may be
open or closed.  It is up to the user to decide.  The only part of the GUI
that should be visible at all times is the main menu bar.  There will not
be a main window.  I want this menu bar to be the device the user uses to
open and close the various dialogs that they can look at.

When the user chooses file-save the only thing that happens is that the
program saves all the settings the user has entered on the various dialogs
including which dialogs are opened and closed.  A user can reopen the
system in a specific configuration by opening a configuration file.

Can someone describe briefly the best way to structure the high level code
so that Qt can handle this type of application.  Or if there is an example
application from Qt that uses this paradigm I would like to see it.
However, so far I have not found such example.

I thought of creating a main window form using Qt Designer with the main
form having a size of zero so that the user cannot see it.  However, it
doesn't seem like one can create such a form.  I would like to design the
main menu bar and the dialog boxes using Qt designer as it will save me a
lot of time rather than having to do everything in code.

Jan

Jan M. Wouters
Los Alamos National Laboratory
m.s. m311
505 667-7233
jwouters@lanl.gov


Message 2 in thread

Jan,

you might want to have a look at QExtMDI: 
http://www.geocities.com/gigafalk/qextmdi.htm
It allows you to build an application that consists of just a menubar 
and provides a lot of nifty features for window handling.

Fabian
-- 
 [ signature omitted ]