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. A problem that I can't call some functions declared in QtObject of qml
Forum Updated to NodeBB v4.3 + New Features

A problem that I can't call some functions declared in QtObject of qml

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 197 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.
  • Z Offline
    Z Offline
    zerone
    wrote on last edited by
    #1

    I declare some functions in QtObject of qml. Then, I dymically create a qml object from javascript, and I can call these functions soon. However, subsequently, I want to call these functions from javascript again. They can't be found in this object.

    QtObject{
          id: ...
          property int ...
    
          function func(){
                  ...
          }
    }
    

    Is there someone that can tell me how to solve this issue?

    1 Reply Last reply
    1
    • R Offline
      R Offline
      Reggy_Huo
      wrote on last edited by
      #2

      I met this problem too,bro.Has you figure this out yet?

      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