Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved How can I add a widget to a 3D scene in C++ like we do with Image in QML?

    QML and Qt Quick
    1
    1
    117
    Loading More Posts
    • 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.
    • S
      sofiane last edited by

      I've looked at pixmap, QLabel, but couldn't make it work, here is a code snippet of what I tried, this code is not complete:

      Qt3DExtras::Qt3DWindow *view = new Qt3DExtras::Qt3DWindow();
      Qt3DCore::QEntity *rootEntity = new Qt3DCore::QEntity();
      QLabel *label = new QLabel(rootEntity);
      label->setText("some text");
      

      the parent object of label must be a QWidget, but I'm working with a qt3Dwindow and QEntity, how can I integrate label to the scene?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post