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. Overwhelmed by the range of options to use for my Qt project
Forum Updated to NodeBB v4.3 + New Features

Overwhelmed by the range of options to use for my Qt project

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 145 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.
  • C Offline
    C Offline
    CollinIsmael
    Banned
    wrote on last edited by JKSH
    #1

    Hi, I hope this is the right place for this question.

    I want to create a desktop application whose main component is to be a 3D scene. This 3D scene features a model that is composed of basic geometrical shapes, the number and specifics of which are specified by the user via the GUI, i.e. size, translation, rotation about a certain vector, etc. I hope this is specific enough.

    Now I have the impression that I could try to implement it fully in C++ using Qt Widgets, in QML using Qt Quick, or even combine those in different ways. I'm extremely new to Qt so I'm unsure which approach would suit my needs the best.

    [EDIT: Spam links removed --JKSH]

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      I would go for QML for the 3D part as more info,
      more examples and as far as i know not all interfaces are available in c++ yet.
      Also the QML is maybe also easier/cleaner than the c++ api.
      like a camera.

      Camera {
              id: camera
              projectionType: CameraLens.PerspectiveProjection
              fieldOfView: 45
              aspectRatio: 16/9
              nearPlane : 0.1
              farPlane : 1000.0
              position: Qt.vector3d( 0.0, 0.0, -40.0 )
              upVector: Qt.vector3d( 0.0, 1.0, 0.0 )
              viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 )
          }
      

      The same in c++ will not be as easy to read :)

      maybe start here to get a feel of QML ?
      https://doc.qt.io/qt-5/qt3d-simple-qml-example.html

      If you already know c++ and are good/ok with it, i would start with
      https://doc.qt.io/qt-5/qt3d-widgets-scene3d-example.html

      where we have the QML in a widget.
      That allows you to fast have some widgets to set the data with and can
      focus on the 3d part and its interface.

      You can then later decide if you want a clean QML app or a mix.
      Just make sure you do proper OOP and have interfaces for add/edit 3d object and
      not tie it to the interface/widget.

      The mixed way might have lower performance but it might not matter for you.

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved