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. QSpinBox Button Size
Forum Updated to NodeBB v4.3 + New Features

QSpinBox Button Size

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.1k 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.
  • S Offline
    S Offline
    sos1
    wrote on last edited by
    #1

    Is it possible to change the size of the +/- (up/down) buttons on QSpinBox? I would like to use it on a touchscreen but the buttons are too small for use without a stylus. The width is especially too small and I would like to increase it to make it easier to use with a finger.

    Thanks,
    James

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lykurg
      wrote on last edited by
      #2

      See QApplication::setGlobalStrut() or you have to use a custom style where you define the size of the buttons explicite. (--> QProxyStyle)

      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