Skip to content
  • 143k Topics
    718k Posts
    G
    I'm building a 3D scatter graph for a magnetometer calibration tool. The graph is centered on [0,0,0], I'd like to make sure the camera points through the most recent point (call it v) to [0,0,0]. I'm struggling finding the right incantation. I'm not really sure how CameraXRotation and CameraYRotation should relate to the euler angles of v. Here's my latest effort (which doesn't work): QVector3D v = QVector3D(x,y,z); v.normalize(); // camera vector QVector3D camera = QVector3D(0,1,0); // camera along y axis // compute rotation QQuaternion rotation = QQuaternion::rotationTo(camera,v); rotation.getEulerAngles(&pitch,&yaw,&roll); // set camera rotation graph->setCameraXRotation(roll); graph->setCameraYRotation(pitch);
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    Esmaeil_SooanE
    Hi, You can also check out this library: 👉 QAudioTagReader It’s a Qt-friendly wrapper around TagLib for exporting audio tags.
  • Everything related to designing and design tools

    129 391
    129 Topics
    391 Posts
    J
    In QT Design Studio, Tab Buttons are mostly for navigation within the UI, but each tab doesn’t automatically hide other content. Usually, a StackView or Loader is needed to switch visible content depending on the active tab.
  • Everything related to the QA Tools

    81 219
    81 Topics
    219 Posts
    H
    @IamSumit can you reproduce the issue and share the Support Information logs. Please refer to the following Knowledge Base Article regarding how to obtain the Support Information is https://qatools.knowledgebase.qt.io/misc/collecting-support-info/collecting-support-information-linux-mac-windows/
  • Everything related to learning Qt.

    387 2k
    387 Topics
    2k Posts
    V
    Hi, everyone. I'm looking for a teammate or two for this competition
  • 2k Topics
    13k Posts
    Kent-DorfmanK
    I do a lot of python/pyqt database access using psycopg2 for PostgreSQL. It's so much easier to prototype these kinds of ideas in a language like python, and if needed then port it to c++, but truth be told, most of the time the python app is just works as is so no need to rewrite in c++. For something as simple as you are alluding to, the hard core OO models using DAO/DTO are probably overkill. Also, when dealing qith SQL queries it's "nice" to work in a language that is NOT strongly typed. Sorry if this is a round-about way to respond. Your path has merit in the realm of intellectual curiosity, but if you want it done quickly then python is a better option, and you can still wrap it in a Qt GUI. Yikes! Didn't notice OP was 9 months ago...
  • 4k Topics
    18k Posts
    L
    我在Qt生成的动态库,是否可以用Visual Studio 中C++直接调用?项目中包含了Qt类型的是否可以生效,比如QString,QTimer? 是否可以用C#调用?
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    Axel SpoerlA
    Everything looks right in my eyes. If I e.g. search for @Volker-Hilsheimer's blog post about QRangeModel, I'll find it here. Do you have a specific link for me to check?