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. Set min and max value for spin box in QtQuick.Controls 2.0
Forum Updated to NodeBB v4.3 + New Features

Set min and max value for spin box in QtQuick.Controls 2.0

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 1.5k 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.
  • saitejS Offline
    saitejS Offline
    saitej
    wrote on last edited by
    #1

    Hi

    I am using import QtQuick.Controls 2.0 in 5.7.1 Qt.

    When I try to use a spinbox with this import, I get error for minimumValue, maximumValue etc.

    Error: Cannot assign to non-existent property "minimumValue"

    I don't get this error when I use import QtQuick.Controls 1.4 I want to use 2.0 for styling and customization. Any suggestions to get rid off this error?

    Thanks

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by dheerendra
      #2

      You are using spinBox from Controls. This has properties called from and to. You can use them. spinBox from controls does not have minimum and max properties.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      saitejS 2 Replies Last reply
      6
      • dheerendraD dheerendra

        You are using spinBox from Controls. This has properties called from and to. You can use them. spinBox from controls does not have minimum and max properties.

        saitejS Offline
        saitejS Offline
        saitej
        wrote on last edited by
        #3

        @dheerendra

        Thanks!! Is there a separate documentation for spinbox or other elements from controls? There is nothing mentioned here.

        1 Reply Last reply
        0
        • dheerendraD dheerendra

          You are using spinBox from Controls. This has properties called from and to. You can use them. spinBox from controls does not have minimum and max properties.

          saitejS Offline
          saitejS Offline
          saitej
          wrote on last edited by
          #4

          @dheerendra

          I got the documentation
          Thanks!!

          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