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. Qt 6.2 beta1 reciving qobject Pointer in c++
QtWS25 Last Chance

Qt 6.2 beta1 reciving qobject Pointer in c++

Scheduled Pinned Locked Moved Solved QML and Qt Quick
javascriptqjsengine
2 Posts 1 Posters 376 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.
  • R Offline
    R Offline
    Ricardo MAtos
    wrote on last edited by
    #1

    When reciving a qobject from JavaScript into a c++ method that recives a qobject drived class as a Pointer it comes as a null widget and not a qobject Pointer, it is need to use qjsvalue::toObject to to covert.
    It is not possibel to convert directly into a qobject pointer converted directly by the proxy engine?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Ricardo MAtos
      wrote on last edited by
      #2

      Hops i forget to make the new object a type of already register with the newmetaonject

      1 Reply Last reply
      1

      • Login

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