Important: Please read the Qt Code of Conduct -

[Solved] Making QTab widget scroll buttons bigger.

  • Hi,
    I have been searching on "QTab" and "scroll" and have not found anything. On our target (a touch screen device) I have used more QTabs then there is room for. So Qt uses left/right scroll buttons at the top right corner of the QTab widget to allow the user access to the tabs beyond the left or right side of the QTab widget.

    But the QTab widget scroll buttons are very very small. They are practically impossible to use on a touch screen device.

    How can I increase the size (width) of the QTab left/right scroll buttons?


  • Ok, I found my problem. They are not called "scroll" buttons. They are called "scroller". This style sheet text did the trick:

    But that left the buttons transparant. Looked confusing as the tab buttons migrated behind the scroller buttons. So we had to color the back ground of the scroller buttons:
    "QTabBar QToolbutton{background-color:"light blue";}"


  • @st2000 Hello,
    I too have this weird scroll buttons problem that apparently no one else has. I am looking to make them bigger because I will be using a tab widget in an embedded device and the siez is reduced,.
    I, however, do not understand how did you implement your mentioned code.
    Could you please add an example of the implementation? I would greatly appreciate it.
    Thanks in advance.

Log in to reply