Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] free-floating windows within a main window
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] free-floating windows within a main window

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    planarian
    wrote on last edited by
    #1

    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.]

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved