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. can i use qt widget to import obj file?
Forum Updated to NodeBB v4.3 + New Features

can i use qt widget to import obj file?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 384 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.
  • P Offline
    P Offline
    piercashuang
    wrote on last edited by piercashuang
    #1

    scenario: the current program is developed through qtwidget, and when i wanna add 3d thing on to it, i cant find any examples about how to import obj file in qt widget.
    I find many resources about importing 3d thing to qml project. But it seems ask me to rewrite the whole project just because i wanna add 3d thing.
    Can someone give me some tips about these issues?

    jsulmJ 1 Reply Last reply
    0
    • jsulmJ jsulm

      @piercashuang You should check https://doc.qt.io/qt-6/qt3d-index.html
      Normal Qt Widgets have nothing to do with 3D.

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #3

      Hi,

      Even if the only solutions you find are for QML, you can create a QQuickWidget to integrate that view into your application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      2
      • P piercashuang

        scenario: the current program is developed through qtwidget, and when i wanna add 3d thing on to it, i cant find any examples about how to import obj file in qt widget.
        I find many resources about importing 3d thing to qml project. But it seems ask me to rewrite the whole project just because i wanna add 3d thing.
        Can someone give me some tips about these issues?

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @piercashuang You should check https://doc.qt.io/qt-6/qt3d-index.html
        Normal Qt Widgets have nothing to do with 3D.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        SGaistS 1 Reply Last reply
        0
        • jsulmJ jsulm

          @piercashuang You should check https://doc.qt.io/qt-6/qt3d-index.html
          Normal Qt Widgets have nothing to do with 3D.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #3

          Hi,

          Even if the only solutions you find are for QML, you can create a QQuickWidget to integrate that view into your application.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          P 1 Reply Last reply
          2
          • SGaistS SGaist

            Hi,

            Even if the only solutions you find are for QML, you can create a QQuickWidget to integrate that view into your application.

            P Offline
            P Offline
            piercashuang
            wrote on last edited by
            #4

            @SGaist yeah,sounds good, i think it is kinda of hybrid development

            1 Reply Last reply
            0
            • P piercashuang has marked this topic as solved on
            • K Offline
              K Offline
              Kim Nancy
              wrote on last edited by
              #5

              To add 3D elements to your Qt Widget program, use libraries like Assimp or libQGLViewer. They enable easy import and display of OBJ files without rewriting your project. Check their documentation for integration details and examples.

              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