Skip to content

Qt 6

This is where all Qt 6 related questions belong

816 Topics 3.9k Posts
QtWS25 Call for Papers
  • 0 Votes
    5 Posts
    241 Views
    cristian-adamC

    I guess it depends of what you are using from OpenGL and GLSL.

    The opengl32sw.dll (mesa3d llvmpipe) that Qt is using is a bit dated, and might not provide the OpenGL version that you need.

    You can get a newer version from https://github.com/pal1000/mesa-dist-win

  • What should be inside of Qt6HostInfoConfig.cmake?

    Unsolved
    3
    0 Votes
    3 Posts
    866 Views
    C

    Hi.

    Qt6HostInfoConfig.cmake should be found in the host (read desktop) Qt installation.

    You should not create the file yourself, but rather specify a -DQT_HOST_PATH=/path/to/host/qt argument when configuring the Qt for raspberry Pi, to a prebuilt / installed host Qt (for example, the one that comes with your distro, or the one from the Qt installer)

  • Versions info for libs used in Qt6.2.5

    Unsolved
    2
    0 Votes
    2 Posts
    133 Views
    SGaistS

    Hi,

    Same answer as here.

  • 0 Votes
    3 Posts
    212 Views
    J

    @JonB It is a meson project using custom commands, and QT will not let me specify a different executable for release and debug. It will only let me manually switch which executable it will run, so I can have build run the debug build and then run run the release executable which is something I do not want done.

  • QT 6.2.4 MacOS Build from Source

    Unsolved
    4
    0 Votes
    4 Posts
    396 Views
    SGaistS

    I tested the build with the sources but on a more recent version of macOS and it went fine using the same options as you.

  • how to write cascaded data to excel using Qtxlsx

    Unsolved
    3
    0 Votes
    3 Posts
    242 Views
    JonBJ

    @yangyanhui4
    QtXlsx is pretty limited in what it supports. There are many features of Excel which it does not support, including maybe your "groupRows".

  • 0 Votes
    8 Posts
    2k Views
    H

    This is because of virtualbox 3d acceleration support opengl version 2.0
    it looks like qt multimedia(6.2) need opengl at least 3.0 version

    Below was how to know it.
    mesa log enable and log like below

    Mesa: glGenTextures 1
    Mesa: glBindTexture GL_TEXTURE_2D 2
    Mesa: FLUSH_VERTICES in bind_texture_object
    Mesa: FLUSH_VERTICES in teximage
    Mesa: glTexImage2D GL_TEXTURE_2D 0 GL_R8 960 360 1 0 GL_RED GL_UNSIGNED_BYTE (nil)
    Mesa debug output: GL_INVALID_VALUE in glTexImage2D(internalFormat=GL_R8)

    GL_R8 variable is available upper than opengl 3.0

    That's why we have to see green screen in virtualbox 3d acceleration

  • How do you add a file to a meson project?

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Custom Wayland extensions/protocols in Qt clients

    Solved
    8
    0 Votes
    8 Posts
    598 Views
    ehopperdietzelE

    @JKSH Thank you ! I didn't know that, it's way more convenient

  • QSqlDatabase: QMYSQL driver not loaded

    Unsolved
    7
    0 Votes
    7 Posts
    445 Views
    jsulmJ

    @Patsch36 said in QSqlDatabase: QMYSQL driver not loaded:

    How can be the driver now available but does still not work?

    Set QT_DEBUG_PLUGINS environment variable before starting your app, then post the output from terminal here.
    https://doc.qt.io/qt-6/debug.html

    Also, exact same questions is asked many many times, please search in this forum.

  • how to iterate through all server folders

    Locked Unsolved
    3
    0 Votes
    3 Posts
    160 Views
    F

    sorry i thought there were no more answers @jsulm

  • Allocation of incomplete type 'QaudioOutput'

    Unsolved
    2
    0 Votes
    2 Posts
    302 Views
    jsulmJ

    @Joona-A said in Allocation of incomplete type 'QaudioOutput':

    What's wrong?

    You forgot to include QAudioOutput header file as shown here: https://doc.qt.io/qt-5/qaudiooutput.html ?

  • How to show data from a thread to status bar?

    Unsolved
    4
    0 Votes
    4 Posts
    205 Views
    jsulmJ

    @KyRillos_BoshRa The data from the thread can be sent via the signal: it would be simply signal parameter. Please read https://doc.qt.io/qt-6/signalsandslots.html

    class MyClass { signals: void mySignal(const QString &myData); // Here myData is an example for data which is passed from signal to slot };
  • 1 Votes
    2 Posts
    484 Views
    S

    It's probably the same as https://bugreports.qt.io/browse/QTBUG-90634

  • [Interpolation in c++]

    Solved
    3
    0 Votes
    3 Posts
    382 Views
    A

    @sierdzio Thank you :D

  • [Programming a pushbutton to do a certain task]

    Unsolved
    12
    0 Votes
    12 Posts
    316 Views
    A

    Okay,
    I put that code because I thought that the rest of it isn't necessary to show .
    Here is my paintGL() method in the class MainWidget:

    void MainWidget::paintGL() { //qDebug()<<__func__; // Clear color and depth buffer glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //================Orbital Frame ==========================================// QMatrix4x4 localMatrix; glMatrixMode(GL_PROJECTION); glLoadMatrixf(projection.constData()); glMatrixMode(GL_MODELVIEW); glLoadMatrixf(localMatrix.constData()); gluLookAt(2.0,2.0,0.0,0.0,0.0,-5.0,0.0,1.0,0.0); glTranslatef(0.0,0.0,-5.0); glRotatef(180.0,0.0,1.0,0.0); glRotatef(-90.0,1.0,0.0,0.0); glScalef(0.4,0.4,0.4); //glMatrixMode(GL_PROJECTION); DrawOrbitalFrame(); program.bind(); texture->bind(); // Calculate model view transformation //qDebug()<<"modelview before transformation"<<matrix; //qDebug()<<"modelview matrix"<<localMatrix; localMatrix.setToIdentity(); localMatrix.lookAt(QVector3D(2.0, 2.0, 0.0), QVector3D(0.0,0.0,-5.0),QVector3D(0.0,1.0,0.0)); localMatrix.translate(0.0, 0.0, -5.0); localMatrix.scale(0.4,0.4,0.4); quaternion = QQuaternion(quat_w, quat_x, quat_y, quat_z); quaternion.normalize(); // Normalizing my quaternion if(ApplyRotation == true) { EulerAngles.append(quaternion.toEulerAngles()); //rotation order is 213. localMatrix.rotate(quaternion); } program.setUniformValue("mvp_matrix", projection * localMatrix); update(); //! [6] //! // Use texture unit 0 which contains cube.png program.setUniformValue("texture", 0); // Draw cube geometry geometries->drawCubeGeometry(&program); texture->release(); program.release(); }

    And in my MainWindow class where I programmed the push button:

    void MainWindow::on_pushButton_3_clicked() { this->ui->mainwidget->ApplyRotation = true; }

    That's what I actually did, I called the variable applyRotation in my my piantGL() method to rotate the object once the user inserts the quaternion value and click on the push button.

  • 0 Votes
    3 Posts
    333 Views
    Chris KawaC

    @AlekM said:

    However in the MSVC modules picker, it only gives "Qt OpenGL" (opengl) as an available module.

    Yes, for some reason it's missing in the picker dialog, but you can just type it in manually in the property editor and it works fine.

    Is there a way to embed this window into my application so that it's not a separate popup?

    Yes. There's static QWidget::createWindowContainer for that. It creates a widget host for QWindow, but if you're using widgets it's easier to use QOpenGLWidget, as it handles all the events and has fewer issues with stacking order and focus handling.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    2 Posts
    903 Views
    T

    I've found the answer: https://stackoverflow.com/questions/73064050/trying-to-build-qt-6-3-1-and-dynamic-linked-with-openssl-3-0-5-on-windows

  • Qt6.24 static compile under win11 x64 issues

    Unsolved
    1
    0 Votes
    1 Posts
    122 Views
    No one has replied