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. How to perform clickable events on 3d Mesh object
Forum Updated to NodeBB v4.3 + New Features

How to perform clickable events on 3d Mesh object

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 897 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.
  • L Offline
    L Offline
    lakshmanGiri
    wrote on last edited by lakshmanGiri
    #1

    I am working on a Qt3D model where I have rendered the model and also working perfectly. Then, I wanted to perform clickable events on the 3D object. Let's say, If I click the model, a dialog should pop up. For example, Let's say, I have a Human 3d Model rendered if I click the head, a dialog should pop up displaying information about the head. Similarly, if I click hand, chest, or any other part, a dialog should pop up displaying information about the respective part.

    How to accomplish this method?. Please, Can anyone help me. Thanks in Advance.

    Poor EnglishP 1 Reply Last reply
    0
    • L lakshmanGiri

      I am working on a Qt3D model where I have rendered the model and also working perfectly. Then, I wanted to perform clickable events on the 3D object. Let's say, If I click the model, a dialog should pop up. For example, Let's say, I have a Human 3d Model rendered if I click the head, a dialog should pop up displaying information about the head. Similarly, if I click hand, chest, or any other part, a dialog should pop up displaying information about the respective part.

      How to accomplish this method?. Please, Can anyone help me. Thanks in Advance.

      Poor EnglishP Offline
      Poor EnglishP Offline
      Poor English
      wrote on last edited by
      #2

      @lakshmanGiri
      I have a clumsy method:we can rewrite the virtual function that responds to mouse click events,and then calculate the 3D body parts corresponding to the human body by the coordinates of click position,and finally convert the information parameters of these body parts into a string is passed to QMessageBox.
      I don't know if this is feasible?

      I am sorry about my poor English!

      L 2 Replies Last reply
      0
      • Poor EnglishP Poor English

        @lakshmanGiri
        I have a clumsy method:we can rewrite the virtual function that responds to mouse click events,and then calculate the 3D body parts corresponding to the human body by the coordinates of click position,and finally convert the information parameters of these body parts into a string is passed to QMessageBox.
        I don't know if this is feasible?

        L Offline
        L Offline
        lakshmanGiri
        wrote on last edited by
        #3

        @Poor-English Hi, Thank you for your reply. But, how to calculate the coordinates of click position, is there any way?

        kshegunovK 1 Reply Last reply
        0
        • L lakshmanGiri

          @Poor-English Hi, Thank you for your reply. But, how to calculate the coordinates of click position, is there any way?

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          https://doc.qt.io/qt-5/qml-qt3d-render-objectpicker.html

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0
          • Poor EnglishP Poor English

            @lakshmanGiri
            I have a clumsy method:we can rewrite the virtual function that responds to mouse click events,and then calculate the 3D body parts corresponding to the human body by the coordinates of click position,and finally convert the information parameters of these body parts into a string is passed to QMessageBox.
            I don't know if this is feasible?

            L Offline
            L Offline
            lakshmanGiri
            wrote on last edited by
            #5

            @Poor-English Thank you, I was able to accomplish it by obtaining the coordinates of the individual part. Also, with the help of coordinates, I was able to write a function to perform clickable events

            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