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. Do something when a property changed?
Forum Updated to NodeBB v4.3 + New Features

Do something when a property changed?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 3.0k 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.
  • P Offline
    P Offline
    phaikawl
    wrote on 4 Mar 2012, 08:23 last edited by
    #1

    I want to do something when a specific property of a QML object changed.
    For example:
    I have a QML TextEdit. I want to deselect() when its focus property changes from true to false.
    How could I do it?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on 4 Mar 2012, 12:29 last edited by
      #2

      "QML Signal and Handler Event System":http://qt-project.org/doc/qt-4.8/qmlevents.html
      [quote]Further, each QML properties have a <property_name>Changed signal and its corresponding on<property_name>Changed signal handler. As a result, property changes may notify other components for any changes.[/quote]

      1 Reply Last reply
      0

      1/2

      4 Mar 2012, 08:23

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved