Results 1 to 3 of 3

Thread: Expanding QToolButton size

  1. #1
    Join Date
    Apr 2008
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Expanding QToolButton size

    When QToolBar can not contain all QToolButtons inside it show the special QToolButton with arrow which can be used to show all buttons by user.

    How can I change default size (width for horizontal tool bars, and height for vertical tool bars) of this "arrow" button. This is importand because I am developing touch driven application.

    Thans a lot for advices!

  2. #2
    Join Date
    May 2009
    Posts
    62
    Thanks
    2
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Expanding QToolButton size

    Did you consider using two or more tool bars?

  3. #3
    Join Date
    Apr 2008
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Expanding QToolButton size

    I have found solution. I had to change Qt source code and rebuild. It should be replace return value in method int QCommonStyle:ixelMetric(PixelMetric m, const QStyleOption *opt, const QWidget *widget) const for PM_ToolBarExtensionExtent case, if anybody it helps.

Similar Threads

  1. Text size
    By bnilsson in forum Qt Programming
    Replies: 2
    Last Post: 2nd October 2008, 21:56
  2. How to find best size for QTableWidget?
    By plamkata in forum Qt Programming
    Replies: 3
    Last Post: 24th July 2008, 19:07
  3. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  4. Replies: 1
    Last Post: 24th October 2006, 16:40
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.