Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] SpinBox with in RowLayout
Forum Updated to NodeBB v4.3 + New Features

[Solved] SpinBox with in RowLayout

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.7k 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
    sfabry
    wrote on last edited by
    #1

    I add some simple spinbox in a row layout, but the behaviour seems buggy, the spinbox with (implicit width i assume) is broken:

    @
    RowLayout {
    SpinBox { value: 55 }
    SpinBox { decimals: 2 }
    SpinBox { minimumValue: 10.2; maximumValue: 10.5; stepSize: 0.01; decimals: 3 }
    SpinBox { minimumValue: 0; maximumValue: 100; value: 33; suffix: "%" }
    SpinBox { value: 33; enabled: false }
    SpinBox { prefix: "prefix"; suffix: "suffix"; value: 22 }

        Item { Layout.fillWidth: true }
    }
    

    @

    !https://dl.dropboxusercontent.com/u/28758727/spinbox.PNG(screenshot)!

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      I get similar results here.

      a workaround could be to use a style and set implicitWidth for it yourself.

      Anyway, you can check also on "JIRA":https://bugreports.qt-project.org/secure/Dashboard.jspa for a reported bug. In case you cannot find anything reported there yet, please file a bug report.

      Please add a link to this thread there and put a tag with the bugreport number here as a tag.

      Qt Certified Specialist
      www.edalsolutions.be

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

        Thanks,
        workaround is good

        Bug reported:
        https://bugreports.qt-project.org/browse/QTBUG-37797

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          You're welcome.

          Thanks for the bug report!

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sfabry
            wrote on last edited by
            #5

            It has been corrected in 5.3 beta :)

            1 Reply Last reply
            0
            • EddyE Offline
              EddyE Offline
              Eddy
              wrote on last edited by
              #6

              Thanks for the feedback here. Well appreciated!

              Qt Certified Specialist
              www.edalsolutions.be

              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