Results 1 to 3 of 3

Thread: MainWindows

  1. #1
    Join Date
    Jul 2010
    Posts
    72
    Thanks
    35
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default MainWindows

    Hi,

    Is it possible to use Layouts in MainWindows?

    Cheers

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: MainWindows

    If You mean QMainWindow class, then Yes. To be more precise You can use Layouts in most GUI classes.

  3. The following user says thank you to Talei for this useful post:

    Maluko_Da_Tola (25th August 2010)

  4. #3
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: MainWindows

    For QMainWindow you will need to create a container QWidget (witch will have layout and contains the rest of the widgets you want) and then use QMainWindow member function setCentralWidget() to add that widget in the "central" of your window

  5. The following user says thank you to Zlatomir for this useful post:

    Maluko_Da_Tola (25th August 2010)

Similar Threads

  1. multiple mainwindows
    By JeanC in forum Qt Programming
    Replies: 4
    Last Post: 4th February 2008, 19:22
  2. "mainwindows" Example
    By Seth in forum Newbie
    Replies: 20
    Last Post: 15th April 2007, 17:11
  3. Proper way of using Designer for MainWindows
    By Doug Broadwell in forum Newbie
    Replies: 1
    Last Post: 11th October 2006, 08:20

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.