Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. spinbox direct input in iOS/android?
QtWS25 Last Chance

spinbox direct input in iOS/android?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 628 Views
  • 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.
  • K Offline
    K Offline
    kgregory
    wrote on last edited by
    #1

    I'm using a spinbox in an iOS/Android mobile app. It works fine except that I can't tap it and have it bring up a number pad for me to type in a value. Is this feature available?

    raven-worxR 1 Reply Last reply
    0
    • K kgregory

      I'm using a spinbox in an iOS/Android mobile app. It works fine except that I can't tap it and have it bring up a number pad for me to type in a value. Is this feature available?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @kgregory
      Please be more specific...
      QML?
      QtWidgets?
      Code snippet?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • K Offline
        K Offline
        kgregory
        wrote on last edited by kgregory
        #3

        I'm using QML with a Qt Quick2 application. Here is a snippet:

        SpinBox {
            id: sizeSet1
            height: 0.05*begin.height
            width: 0.22*begin.width
            anchors.top: sizeLbl1.bottom
            anchors.topMargin: 0.001*begin.height
            anchors.right: parent.right
            anchors.rightMargin: 0.01*begin.width
            from: (modelData.device === 3) ? 3 : 1
            to: (modelData.device === 3) ? 100 : 300
            font.pixelSize: 0.04*begin.height
            Component.onCompleted: {
                sizeSet1.value = modelData.size
                modelData.size = Qt.binding(function() { return sizeSet1.value})
            }
        }
        
        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