Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt3D. How to add node to the scene on mouse click?
Forum Updated to NodeBB v4.3 + New Features

Qt3D. How to add node to the scene on mouse click?

Scheduled Pinned Locked Moved General and Desktop
qt3d
1 Posts 1 Posters 631 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.
  • J Offline
    J Offline
    jura
    wrote on last edited by
    #1

    Hi guys!
    I'm trying qt3d - unfortunately there is no docs on it (autogenerated docs are useless, but if I've skipped something else - please tell me).
    So, I took some c++ sample, and modify it. As I understood I can add anything in scene init and that addition will affect scene. But if I add something like:

    Qt3D::QEntity *entity = new Qt3D::QEntity(m_root);
    entity->addComponent(mesh);

    Then it won't show in scene. So, maybe I need to call something 'hey refresh scenegraph!'. Can you tell me something about that?

    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