Results 1 to 5 of 5

Thread: QToolbox change height of item headers

  1. #1
    Join Date
    Jan 2012
    Location
    Dortmund, Germany
    Posts
    159
    Thanks
    69
    Thanked 10 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default QToolbox change height of item headers

    Hi,
    is it possible to increase the height of the item headers of the QToolBox? I need it for a touch application. The headers to open/collapse the vertical tabs are too small for finger use. I think it might be possible with style sheets but I've read they are deprecated, so I never looked into that concept in Qt.
    Any idea?
    Thank you very much for your work here.
    Sebastian

  2. #2
    Join Date
    Jan 2012
    Location
    Dortmund, Germany
    Posts
    159
    Thanks
    69
    Thanked 10 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QToolbox change height of item headers

    No ideas anyone? I am happy to learn Styles if this is what's needed - or to keep on trying to build that functionality from widgets - which is still a bit beyond me, I suppose. But I thought there must be a better way to do it. I am quite new to all this stuff and don't yet know which direction to take, though old enough to know that such a decision (using something that is deprecated as well as trying to re-invent the wheel) might turn against me further down the road.
    Perhaps, I've posted this into the wrong section of the forum, is it possible to shift it into a more appropriate section?

  3. #3
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QToolbox change height of item headers

    Hi, have you tried changing the tab spacing? i ve never used a toolbox but if you cant find the solution try stylesheets, i found this example in the documentation:

    QToolBox::tab {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
    stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
    border-radius: 5px;
    color: darkgray;
    }

    QToolBox::tab:selected { /* italicize selected tabs */
    font: italic;
    color: white;
    }

    anyways i think here is your answer, lol: http://developer.qt.nokia.com/forums/viewthread/2496

    greetings

    and here if you dont want that the tab`s get smaller when you add more and more: http://developer.qt.nokia.com/forums/viewthread/2305

  4. The following user says thank you to KillGabio for this useful post:

    sedi (1st February 2012)

  5. #4
    Join Date
    Jan 2012
    Location
    Dortmund, Germany
    Posts
    159
    Thanks
    69
    Thanked 10 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QToolbox change height of item headers

    Hey, thanks for the answer! I have not yet succeded, but I have some good directions now. Thank you so much!

  6. #5
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QToolbox change height of item headers

    Always my pleasure

  7. The following user says thank you to KillGabio for this useful post:

    sedi (8th April 2012)

Similar Threads

  1. Replies: 2
    Last Post: 17th February 2011, 02:55
  2. QToolBox, how to set layout to item
    By sergey_85 in forum Qt Programming
    Replies: 1
    Last Post: 30th November 2009, 12:48
  3. Replies: 7
    Last Post: 13th May 2009, 00:26
  4. updateEditorGeometry() and height change
    By Lykurg in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 20:08
  5. Change focus on QToolBox
    By mattia in forum Newbie
    Replies: 1
    Last Post: 20th December 2007, 08:56

Tags for this Thread

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.