Results 1 to 2 of 2

Thread: dynamic grid of toolbar icons in a dockwidget

  1. #1
    Join Date
    Jun 2015
    California, USA
    Thanked 1 Time in 1 Post
    Qt products
    MacOS X Unix/X11

    Talking dynamic grid of toolbar icons in a dockwidget

    Is it possible to have a QDockWidget with a grid of QToolButtons that will adjust when a user changes the size of the dockwidget?
    Let's say we have 16 icons, and the dockwidget is wide enough for 4 columns, giving a 4x4 grid.
    If the user makes the dockwidget only wide enough for 3 columns, then I want the grid to become 3x6 (a single icon in the 6th row).

  2. #2
    Join Date
    Mar 2009
    Brisbane, Australia
    Thanked 1,587 Times in 1,516 Posts
    Qt products
    Qt4 Qt5
    Unix/X11 Windows
    Wiki edits

    Default Re: dynamic grid of toolbar icons in a dockwidget

    You should have a look at the Flow Layout Example in Assistant.

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

    ravas (4th August 2015)

Similar Threads

  1. Icons on toolbar
    By tndave in forum Newbie
    Replies: 2
    Last Post: 8th July 2010, 03:47
  2. Reverse DockWidget/Toolbar docking areas
    By red_team316 in forum Qt Programming
    Replies: 0
    Last Post: 8th October 2009, 05:48
  3. Grid-like Toolbar
    By dv_ in forum Qt Programming
    Replies: 1
    Last Post: 17th February 2009, 11:37
  4. Toolbar in dockwidget
    By AD in forum Qt Programming
    Replies: 7
    Last Post: 2nd October 2008, 15:34
  5. Toolbar & Icons missing
    By raphaelf in forum Qt Tools
    Replies: 2
    Last Post: 27th February 2006, 23:19

Tags for this Thread


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.