how to create a window which overlay on the mainwindow, and also can be dock on the maindow?
-
how to create a window which overlay on the mainwindow, and also can be dock on the maindow?
which class should i inherite? QDockWidget?
and i want the window (which can dock on mainwindow) Not Docked but show on the center over the mainwindow.
thank you! -
Hi,
When you say center over the main window, do you mean that is should completely cover it ?
Can that dock widget be moved at all ? -
it's like a Wizard, or non-modal widget.
when the app startup, the mainwindow shows, and the "wizard" is another window which is separately there above the mainwindow.
the "wizard" can be moved, scaled, etc. separately with the mainwindow.
But, the "wizard" is able to Dock on the mainwindow. -
Then just create a QWizard if it suites the definition of your wizard and put it in a QDockWidget
-
no, i don't need a wizard, i just use it to express what i need.
by the way, can a wizard not Docked when the app startup, and then u can drag and dock it in the mainwindow?
and i don't know wether u use VisualStudio, the docview which shows the cpp code, is what i need.- can be a separate window (non modal dialog) from the mainwindow.
- can be a DockWidget on the mainwindow
-
What you describe as a separated window sounds like an undocked QDockWidget.
If you want by default your wizard to be undocked just don't dock it at creation time.
-
ok, i tried QDockWidget.
but i don't know to make it a separate window lay over the mainwindow.
what APIs should i use ? -
Can you show a picture of what you mean by "lay over the mainwindow" ?
-
This post is deleted! -
link text
like this, an unmodal dialog. but can dock on the mainwindow -
how can i upload a local image?
-
You are showing a modal dialog on a website, which is not exactly the same thing as a non modal dialog over a QMainWindow.