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. Forced update the properties of qml item
Forum Updated to NodeBB v4.3 + New Features

Forced update the properties of qml item

Scheduled Pinned Locked Moved QML and Qt Quick
qmlqt quickitempropertyupdateforced update
5 Posts 2 Posters 2.2k Views 2 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.
  • L Offline
    L Offline
    Lix_
    wrote on last edited by
    #1

    I have created a visual keyboard, it read the text of keyboard from C++ class, using Q_INVOKABLE macro (text = keys.getKey(name, "top")), How to update text from all keys?

    p3c0P 1 Reply Last reply
    0
    • L Lix_

      I have created a visual keyboard, it read the text of keyboard from C++ class, using Q_INVOKABLE macro (text = keys.getKey(name, "top")), How to update text from all keys?

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi @Lix_ and Welcome,
      Trying to understand the question, do you mean you want to name the keys of the virtual keyboard that you have created and that name comes from C++ side using the said method and now you want to fetch names of all the keys in the same way ?

      157

      L 1 Reply Last reply
      1
      • p3c0P p3c0

        Hi @Lix_ and Welcome,
        Trying to understand the question, do you mean you want to name the keys of the virtual keyboard that you have created and that name comes from C++ side using the said method and now you want to fetch names of all the keys in the same way ?

        L Offline
        L Offline
        Lix_
        wrote on last edited by
        #3

        Yes. If user changes the language or switches the case.

        p3c0P 1 Reply Last reply
        0
        • L Lix_

          Yes. If user changes the language or switches the case.

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @Lix_ In that case you should bind the text property of key item to that functions so that it gets new value when your condition changes i.e language or switch case

          157

          L 1 Reply Last reply
          1
          • p3c0P p3c0

            @Lix_ In that case you should bind the text property of key item to that functions so that it gets new value when your condition changes i.e language or switch case

            L Offline
            L Offline
            Lix_
            wrote on last edited by
            #5

            @p3c0 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