Results 1 to 4 of 4

Thread: QMdiArea with designer

  1. #1
    Join Date
    Sep 2007
    Posts
    29
    Thanks
    8

    Default QMdiArea with designer

    hi,
    i'm new to QT4 (user QT3 a while ago) and i'm trying to figure out how to use the QMdiArea widget in combination with the designer.
    is there some clean way of inserting MDI areas? so far i only see the possibility of creating a plain SDI window and then restructure it in code to an MDI one.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMdiArea with designer

    You cannot do that. There is no logic in having the possibility to add MDI areas in Designer.
    You couldn't add more than one anyway.

    If you have to create a MDI interface, then do everything without designer(except maybe some components that don't depend on it).

    Regards

  3. #3
    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: QMdiArea with designer

    You can place a QFrame on the form, right click it and promote the frame to QMdiArea. Just don't insert any widgets into that frame later (it'll still be a frame in Designer, but will be compiled as QMdiArea).

  4. #4
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMdiArea with designer

    That is clever !!
    We can't solve problems by using the same kind of thinking we used when we created them

Similar Threads

  1. Replies: 1
    Last Post: 22nd January 2007, 12:13
  2. Replies: 13
    Last Post: 15th December 2006, 11:52
  3. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  4. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28
  5. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 14:01

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.