Results 1 to 2 of 2

Thread: Hi

  1. #1
    Join Date
    Mar 2007
    Posts
    16
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Hi

    Hi,
    i have a question regarding the QMainWindow,
    in fact i have created my main window with some toolbar and status bar, and right now , i want to add some widgets in the central area of my QMainWindow such as some Labels and ComboBox, my question is , is it possible to add Widgets in the central area of a QMainWindow directly or should i create another widget with my labels and combo boxes on it and set it as the central widget of my QMainWindow
    Tnx for ur advise

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

    Default Re: Hi

    If you use Designer, you can add them directly. But if you hand code, you can add a single widget, thus you need a widget that will have all the widgets you want as its children.

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

    Ahmad (29th May 2007)

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
  •  
Qt is a trademark of The Qt Company.