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. Need large buttons, minimize, close etc for box standard QMessageBox, for touch screen

Need large buttons, minimize, close etc for box standard QMessageBox, for touch screen

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

    I need large buttons , because it is difficult to touch any small area with a large finger. I don't want to rewrite all the widgets already created and available in Qt. How can I change the size of buttons, the minimize close etc, for example a QMessageBox?

    Thanks

    1 Reply Last reply
    0
    • Chris KawaC Online
      Chris KawaC Online
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Anything that is on the window frame is out of Qt hands. It's the window manager that is responsible for these controls.
      There might be an OS specific solution but it's not a Qt topic. Usually it comes down to discarding the window manager frame entirely and drawing it yourself as part of the client area.

      As for what's inside the client frame, Qt respects most systems settings, eg. on Windows it will respect your DPI settings. If you want to override some of these you can use for example "qss":http://qt-project.org/doc/qt-5/stylesheet-reference.html to set margins, paddings and font sizes on specific or all widgets.

      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