Results 1 to 3 of 3

Thread: About central widget in Qt Designer

  1. #1
    Join Date
    Mar 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Question About central widget in Qt Designer

    Hi,guys:
    Have you ever met such a problem:when you create ui with Qt Designer,there are some containers such as QMainWindow and QScrollArea,which will always regard widget you drag into it as the descents of their central widget, which is not exactly what I expect. What I want to do is to set its central widget.Can you help me out?
    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: About central widget in Qt Designer

    You cannot set the central widget directly in designer. Drag some widget onto the central widget of the main window and use a vertical or horizontal box layout. (Doesnt matter which one of both)
    It's nice to be important but it's more important to be nice.

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

    ravas (16th August 2015)

  4. #3
    Join Date
    Mar 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: About central widget in Qt Designer

    Quote Originally Posted by axeljaeger View Post
    You cannot set the central widget directly in designer. Drag some widget onto the central widget of the main window and use a vertical or horizontal box layout. (Doesnt matter which one of both)
    Thanks,you just saved me from the hell~

Similar Threads

  1. QDockWidget/Central Widget Problem
    By Lemming in forum Qt Programming
    Replies: 7
    Last Post: 3rd April 2016, 09:52
  2. Newbie - Confused about the central widget
    By N3wb in forum Qt Programming
    Replies: 1
    Last Post: 20th September 2009, 05:46
  3. QDockWidgets without central widget
    By JoeMerchant in forum Qt Programming
    Replies: 17
    Last Post: 8th August 2007, 14:52
  4. Replacing Central Widget in Designer
    By Max Yaffe in forum Qt Tools
    Replies: 2
    Last Post: 11th July 2007, 11:41
  5. Central Widget of QMainWindow
    By sumsin in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2006, 18:32

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.