Results 1 to 2 of 2

Thread: simple mdiArea example wanted ..

  1. #1
    Join Date
    Feb 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question simple mdiArea example wanted ..

    i want simple mdiArea example, as i want to create an application using mdiArea as a frontend, and i'm using Qt-Creator

    i saw the example that came with Qt, but it is completely written by hand.

    i want an example that have .ui file ( Qt-Designer ) and .cpp files normally

    Can i find something like that ?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: simple mdiArea example wanted ..

    It's not difficult. Create your main window in Designer and place the MDI area widget as its central widget and apply a layout. Right-click on the empty MDI area and select Add Subwindow; you can then add widgets to the sub-window. All the code should be generated for you.

    Alternatively, you can create your sub-window contents independently as QWidget derivatives and put a small amount of code in your main window to add them to the MDI area as required.

Similar Threads

  1. QT Developer wanted
    By DrD in forum Jobs
    Replies: 1
    Last Post: 23rd February 2010, 16:52
  2. positioning sub windows in an mdiarea
    By eric_vi in forum Qt Programming
    Replies: 2
    Last Post: 20th August 2009, 23:08
  3. Squeezing MdiArea tabs
    By truefusion in forum Qt Programming
    Replies: 0
    Last Post: 1st March 2009, 12:21
  4. Replies: 1
    Last Post: 21st February 2009, 14:59
  5. different pop up menus wanted...
    By nupul in forum Newbie
    Replies: 5
    Last Post: 11th February 2009, 07:04

Tags for this Thread

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.