Results 1 to 3 of 3

Thread: [QtDesigner] Multiple rows of QToolBar

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,328
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: [QtDesigner] Multiple rows of QToolBar

    In your Designer file, you have given each toolbar a unique name, haven't you? In your main window constructor, after you have called setupUi(), call

    Qt Code:
    1. QToolBar * firstBarSecondLine = ui->whateverTheToolbarIsNamed;
    2. insertToolbarBreak( firstBarSecondLine );
    To copy to clipboard, switch view to plain text mode 

    This should insert a line break before the firstBarSecondLine tool bar.

    There is probably a way to do this in .ui file code (maybe not interactively using the Designer), but I don't know how.

  2. The following user says thank you to d_stranz for this useful post:

    Malutek (19th January 2013)

Similar Threads

  1. how to set the QToolBar's actions to multiple rows
    By fly542 in forum Qt Programming
    Replies: 2
    Last Post: 25th July 2011, 03:00
  2. QTableView: Select multiple rows?
    By realdarkman71 in forum Newbie
    Replies: 2
    Last Post: 9th December 2010, 21:36
  3. add multiple rows at a time in tablewidgets
    By rk0747 in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2010, 06:54
  4. QTableWidget - Select multiple rows.
    By wally in forum Qt Programming
    Replies: 2
    Last Post: 21st October 2008, 17:15
  5. [QT4] QTreeView and rows with multiple lines
    By KShots in forum Qt Programming
    Replies: 8
    Last Post: 30th March 2006, 18:47

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.