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. RangeSlider onFirstChange non-existent property Error
Forum Updated to NodeBB v4.3 + New Features

RangeSlider onFirstChange non-existent property Error

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 702 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.
  • A Offline
    A Offline
    Argprstest
    wrote on last edited by
    #1

    i using rangeslider for my project in qml. My range slider codes is

    RangeSlider {
                id: rangeSLider
            first.value:  0.0
            second.value: 1.0
            anchors.horizontalCenter: parent.horizontalCenter
            width: 275
            onFirstChanged: console.log("Change")
        }
    

    When i run this codes i have an error. Error is

    Cannot assign to non-existent property "onFirstChanged"
    

    I want to change a text in parent qml file. So i think if use onFirstChange and onSecondChange functions, i can do it. But it did not work.

    How can i do that ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mostefa
      wrote on last edited by
      #2

      Hi @Argprstest

      From Qt documentation of RangeSlider, i am not seeing any

      onFirstChanged
      

      http://doc.qt.io/qt-5/qml-qtquick-controls2-rangeslider.html

      from where do you get it?

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Argprstest
        wrote on last edited by
        #3

        When i write "on" and press ctrl+space qtcreator suggest "onFirstChange".

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Argprstest
          wrote on last edited by
          #4

          i solved my problem by add "Connections" in my range slider. More details

          http://stackoverflow.com/questions/41821909/rangeslider-onfirstchange-non-existent-property

          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