[SOLVED] free-floating windows within a main window



  • The project I'm working on consists of three free-floating widgets, which I now want to place inside my program's main window. I assumed this would be trivially simple, and perhaps it is if you know which classes to use....I've been experimenting with QMainWindow and QMdiArea, but the results are always a frozen layering of the widgets on top of one another within the window. I suspect QMdiArea isn't what I should be using (the program doesn't have "documents" per se), but I can't figure out a more suitable alternative.

    [EDIT: Ok, I figured out the problem. I had registered the QMdiArea instance as the parent of the three widgets. Once I set each of their parent pointers to null, it worked.]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.