Results 1 to 2 of 2

Thread: Child Windows

  1. #1
    Join Date
    Jun 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Child Windows

    Ideally am after a QMainWindow that I can grid. I'm wanting to do this to create fixed layouts with limited move, resize abilites (something like grid layout widget in designer when placing or moving existing widgets) whilst preventing windows overlapping. I'd like to hook onto the resize events so I can to the appropriate thing (re-grid differently). I'd like to use something QT inbuilt so it automatically looks correct on other platforms (whereas a customly created widget wouldn't).

    Any ideas, all thoughts appreciated? I've been looking along the lines of the following:

    I've tried QWidget with Qt::Window and Qt::SubWindow but that dosen't do the right thing when gridded.

    I've tried QWorkspace and although now I can get child windows I haven't yet found a way to restrict their resizing/positioning behaviour.

    Lastly I've tried QDockWidget. This is probably the most promising but has limitations in that it can only be in specific areas of a QMainWindow. I'd like to dock only certain windows in a frame, only those that have frame as parent. Perhaps a single qworkspace with empty qmainwindow would do this? Atleast with this the method objects cannot overlap. If only there is away to specify the initial layout (i.e. this next to this, this one below those two spanning both..... like can do in a grid layout).

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Child Windows

    Maybe this is a stupid question, but why don't you use QGridLayout?

Similar Threads

  1. qt and mingw can not run on windows 98?
    By evewei in forum Installation and Deployment
    Replies: 4
    Last Post: 26th June 2006, 09:22
  2. MDI windows without QWorkspace
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 16th June 2006, 17:15
  3. Move child widget along with the parent widget
    By sreedhar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 12:00
  4. Infinite loop - resize parent from child
    By bitChanger in forum Qt Programming
    Replies: 3
    Last Post: 5th May 2006, 13:21
  5. Referencing Parent Widget from Child
    By taylor34 in forum Qt Programming
    Replies: 8
    Last Post: 11th April 2006, 15:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.