Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Changing the height of the tabbar in a qtabwidget
Qt 6.11 is out! See what's new in the release blog

Changing the height of the tabbar in a qtabwidget

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 5.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RakettenR Offline
    RakettenR Offline
    Raketten
    wrote on last edited by
    #1

    Hi all,

    I am writing an app to be used onb a touchscreen and feel the size of the tabbar in my qtabwidget is too small.

    Can you help?

    Thanks in advance

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      you can use style sheet to achieven this.
      Have a look at the "doc of the style sheets":http://doc.qt.nokia.com/4.7/stylesheet.html

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sigrid
        wrote on last edited by
        #3

        You can also try using "QApplication::setGlobalStrut()":http://doc.qt.nokia.com/latest/qapplication.html#globalStrut-prop. This sets the minimum size a widget can be, and is helpful when making an application more touch screen friendly.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved