Skip to content

Qt 6

This is where all Qt 6 related questions belong

828 Topics 4.0k Posts

QtWS: Super Early Bird Tickets Available!

  • 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
    670 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
    534 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
    181 Views
    F

    sorry i thought there were no more answers @jsulm

  • Allocation of incomplete type 'QaudioOutput'

    Unsolved
    2
    0 Votes
    2 Posts
    352 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
    235 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
    541 Views
    S

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

  • [Interpolation in c++]

    Solved
    3
    0 Votes
    3 Posts
    424 Views
    A

    @sierdzio Thank you :D

  • [Programming a pushbutton to do a certain task]

    Unsolved
    12
    0 Votes
    12 Posts
    367 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
    366 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
    978 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
    147 Views
    No one has replied
  • Qt6.24 deploy software with release issues

    Unsolved
    9
    0 Votes
    9 Posts
    539 Views
    Sam1990S

    @Croitor-Alexandru
    not it's not a problem,i have solved it ,that is because i deploy it with dos mode under windows,so issues showed up ,i have to do this under dos of mingw64 Qt6.24,now it's ok,anyway thanks a lot

    best reguards

    Sam

  • QDB2 not loaded qt 6.3.1

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • How to defined the MACRO CODE for the slots functions?

    Unsolved
    5
    0 Votes
    5 Posts
    239 Views
    Christian EhrlicherC

    @nicker-player said in How to defined the MACRO CODE for the slots functions?:

    I dont want to write so many the same codes.

    What exactly do you think you're saving here? I would guess the time discussing here is already much more than you're saving.

  • Qt Quick Form Editor cannot display window

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    bandito_embeddedB

    Hi friends,

    I also encountered this issue and solved it in a rather strange way.

    I have Qt Creator 7.0.2 based on Qt 6.2.3.
    I have installed two development Kits:

    Qt 5.15.2 MSVC 2019 64bits Qt 6.2.4 MSVC 2019 64bits

    When I create a new QtQuick project with Qt 5.15.2 as main Kit my code is similar to you @L_A_Reeves :

    import QtQuick 2.15 import QtQuick.Window 2.15 Window { width: 640 height: 480 visible: true title: qsTr("Hello Canary") }

    If I switch to the Design View, then I see the infamous bug :
    2022-07-15 15_25_26-main.qml @ Canary - Qt Creator.png

    But, If I add the build Kit Qt 6.2.4 to the project, select it and then switch to the Design View, here I can see my Window:
    2022-07-15 15_27_08-main.qml @ Canary - Qt Creator.png

    So my first conclusion is that, depending on the version of Qt used by your Qt Creator, you need to have the equivalent Kit selected
    so that the Design View can interpret correctly your QML.
    If you have Qt Creator based on Qt 6.x then I believe you need for your project to select a Qt Kit 6.x to be able to see your interface in the Design view
    .

    That's my first conclusion. Hope it helps somebody.

  • 0 Votes
    1 Posts
    337 Views
    No one has replied
  • Dose the QTv6 has the jvm libraries module ?

    Unsolved
    2
    0 Votes
    2 Posts
    152 Views
    SGaistS

    Hi,

    As you already found out, that part is specific to the Android platform. Qt does not embed the JVM in any case. Those are just Qt wrapper on top of the standard JNI functionalities.

    Qt has otherwise nothing specific for Java. There is the Qt Jambi project that provides bindings for Qt for the Java language.

  • Qt6.24 QPrintPreViewDialog issues

    Solved
    1
    0 Votes
    1 Posts
    142 Views
    No one has replied