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. can Surface3D convert to Q3DSurface ?
Forum Updated to NodeBB v4.3 + New Features

can Surface3D convert to Q3DSurface ?

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

    Using the 'Qt Quick 2 Oscilloscope Example' example, I know that I can convert Surface3DSeries in QML to QSurface3DSeries in C++.
    However, my attempt to convert Surface3D in QML to Q3DSurface in C++ failed.

    "Could not convert argument 0 at"
    "Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated."
    

    I have added Q_DECLARE_METATYPE(Q3DSurface *) and qRegisterMetaType<Q3DSurface *>() to the code.
    I'm using Qt v5.15.2.。

    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