Solved Is it possible to have a window in a window?
-
In case you don't understand my question I will explain.
Is it possible to create a container which has other windows inside.
An example of this would be photoshop. When you run photoshop you can open up new windows for images, but they reside in the main program window. Of course in photoshop you can also pull these windows out of the main application as well.Is it possible to do this in QT?
-
@Asimov said in Is it possible to have a window in a window?:
an open up new windows for images, but they reside in the main program window. Of course in photoshop you can also pull these windows out of the main application as well.
Is it possible to do this in QT?Hey, yes, maybe you could use QWidget::createWindowContainer().
Or you can do smoething like this : http://stackoverflow.com/questions/1518317/how-to-show-another-window-from-mainwindow-in-qt
-
Hi,
Do you mean QDockWidgets in a QMainWindow ?
-
Hi,
that could be done with QMdiArea and QMdiSubWindow. -
This is a screenshot of photoshop and this is the kind of thing I am looking for. Resizable and closable windows inside the application window.
-
The image upload is currently broken. See here for how to share images.
-
@SGaist
I know you said it is broken, but I can see the image. When you told me it was broken I cleared my cache, shut down mozilla and then restarted it, and the image still shows up in QT.Will however look at that link you posted for me.
-
You can see it without any problem for a while. However others might not be able to do that as it's the case now.
-
@SGaist
I hope you can see this one. Sent it to photobucket. This is the kind of thing I want to achieve. Multiple windows in my application, but inside my main window.
-
Then take a look at @Gerd class suggestions, they are what you are looking for.
-
@Gerd
I will look into QMdiArea and QMdiSubWindow.Thanks
PS. Found this tutorial. It is all in a foreign languge, but I got the gist of it, so QMidiArea is the one I need to use
https://www.youtube.com/watch?v=Rh64jrrx0bw -
Good
Since these classes are what you were looking for, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
-
@SGaist
Yes sorry, meant to mark it as solved yesterday, but didn't get around to it. Will do it now. -