Results 1 to 3 of 3

Thread: Maybe a bug from Qt : Impossible to change the height of QToolBarExtension

  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Exclamation Maybe a bug from Qt : Impossible to change the height of QToolBarExtension

    Hi,
    Maybe a bug found in Qt, doing that the height doesn't change.
    Qt Code:
    1. QToolBarExtension
    2. {
    3. height: 19px;
    4. }
    To copy to clipboard, switch view to plain text mode 
    Changing the background color works correctly but the height is impossible to change.
    Bug from Qt or bad use ?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Maybe a bug from Qt : Impossible to change the height of QToolBarExtension

    It has been a long time since I have worked with Qt Stylesheets, but as far as I can remember only the specified Types are supported and I don't see QToolBarExtention in there:
    http://doc.qt.io/qt-5/stylesheet-reference.html
    QToolBar however is supported, have a look at the Stylesheet foc for QToolBar maybe it will give you a clue what you can do in your case.
    Or maybe you should use QToolBarButton as a selector.
    Or I found this link, maybe it can bring you further:
    https://forum.qt.io/topic/237/how-ca...icon-via-css/4
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Maybe a bug from Qt : Impossible to change the height of QToolBarExtension

    I only wanted to reduce the size of the qtoolbar extension (arrow button) which is visible when the toolbar is too short to show all items in the toolbar.
    All works good but this button is 2px too tall than the qtoolbar height which gives a render issue.
    Maybe a bug on the calcule of the height of this button.
    But the point is it's impossible to change the height.

Similar Threads

  1. Replies: 7
    Last Post: 5th August 2016, 13:13
  2. Qt5/C++ - QEasingCurve, change bounce height
    By jimbo in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2016, 14:05
  3. how to change the height of QHeaderView?
    By TorAn in forum Qt Programming
    Replies: 1
    Last Post: 13th March 2015, 08:43
  4. QTableView How to change height for all rows?
    By sergey_85 in forum Qt Programming
    Replies: 2
    Last Post: 1st December 2009, 19:49
  5. updateEditorGeometry() and height change
    By Lykurg in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 20:08

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.