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 truncated text in Qt 5
Forum Updated to NodeBB v4.3 + New Features

QSpinBox truncated text in Qt 5

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

    I've got a QSpinBox in a toolbar. There's some prefix text and sizing is all default. Displayed text is truncated at both ends. If I turn off the buttons, display looks right for a single-digit value. (My maximum is 99, 2 digits.) I can force the width by adding the length of the text calculated from fontMetrics plus some extra for the buttons. It just worked in Qt 4. Was I just lucky that it worked in Qt 4, or is Qt 5 broken?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      There are likely to be a few regressions in Qt5 as there are a lot of changes under the hood. I am not aware of any significant changes done to QSpinBox so my assumption is that this is caused by a style change. It would be great if you posted a proper bug report over at:

      https://bugreports.qt-project.org

      Make sure to add a minimal example, which platform and perhaps which style you are using.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wssddc
        wrote on last edited by
        #3

        QTBUG-28863 has been created.

        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