Skip to content

Qt 6

This is where all Qt 6 related questions belong

828 Topics 4.0k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • How to implement nativeEvent() in my library?

    Solved
    8
    0 Votes
    8 Posts
    797 Views
    W

    @jsulm
    Hi,
    Thanks for your reply and help.
    I found a solution like this, https://copyprogramming.com/howto/detected-new-usb-device-connected-disconnected-on-qt
    I made a class and when I plug/unplug my USB camera, there can receive WM_DEVICECHANGE in my class.
    I will also try what I mentioned in my library.
    Have a nice day.

  • How to navigate in Qt documentation

    Unsolved
    2
    0 Votes
    2 Posts
    197 Views
    jeremy_kJ

    @Nikita-Kobzev said in How to navigate in Qt documentation:

    Hi, there is doc.qt.io. Is there a structure to it? As I read it and click on each link, I always end up on a page that I can never find again in the table of contents.

    I have this problem occasionally. Most of the time, Creator/Assistant's index search avoids the issue.

    Example 1: https://doc.qt.io/qt-6/qtqml-modules-cppplugins.html

    I'm not sure about this one, without resorting to an index.

    Example 2: https://doc.qt.io/qt-6/qtqml-cppintegration-overview.html

    https://doc.qt.io/
    -> "Qt 6" in the center iframe
    -> "Qt QML" in the center frame
    -> "Integrating QML with C++ Applications" in the right frame
    -> "Overview - QML and C++ Integration" in the center frame

    How do I navigate from the documentation root to get to those pages?

    Hopefully in use, this is mostly an artificial problem. Starting from an example seems to generate better navigation from problem to solution for me, but I may be too far into the mindset to imagine a blank slate.

  • Qt creator QML module not found

    Unsolved
    4
    0 Votes
    4 Posts
    284 Views
    Ash VA

    @sierdzio @Axel-Spoerl
    Thank you very much for clarifying my issue ! 👏️👏️

  • 0 Votes
    2 Posts
    237 Views
    SGaistS

    Hi and welcome to devnet,

    Which version of Qt are you using ?

    To the best of my knowledge, there's no option for reverse play.

    As for the resource issue, the native backends cannot access the files within the resources. You have to copy the file in a temporary location and play it from there.

  • How to add submodule after configuring and building?

    Solved
    4
    0 Votes
    4 Posts
    812 Views
    SGaistS

    @elahav good point. We can even improve your suggestion: git submodule update --init qtcharts.

  • 0 Votes
    2 Posts
    175 Views
    JoeCFDJ

    @StudentDev9923 I use TabBar of QtQuick.Controls to create tabs. No issues with Qt 6.6.1. Maybe you can show some code and your problems.

    Also check out the nice example of Qt 6 under quickcontrols/filesystemexplorer/Sidebar.qml for horizontal or vertical layout.

  • Does Qt6 require CLANG to build? What if GCC ONLY?

    Unsolved
    7
    0 Votes
    7 Posts
    908 Views
    semlanikS

    @jiapei1000 please set -no-feature-native_grpc or -DFEATURE_native_grpc=OFF when configuring Qt/QtGRPC. This will unblock your build.

  • Potential QQuickWidget broken on Qt6.2?

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    Q

    @eyllanesc so do I. add this code : QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);

  • Cross Compilation Qt 6.5.3 Error

    Unsolved
    1
    0 Votes
    1 Posts
    192 Views
    No one has replied
  • Qt 6.5.3 Qml Dialog not showing close "X" button on header.

    Unsolved
    1
    0 Votes
    1 Posts
    175 Views
    No one has replied
  • DDS image format plugin

    Unsolved
    13
    0 Votes
    13 Posts
    930 Views
    Christian EhrlicherC

    @QMLEngine said in DDS image format plugin:

    CMake.txt file in the folder of dds but still I couldn't see dds in QImageReader::supportedImageFormats() supported image format.

    And did you acutally compile and install the dds plugin afterwards?

  • QRhi software-rendering example

    Unsolved
    1
    0 Votes
    1 Posts
    208 Views
    No one has replied
  • Undefined reference to staticMetaObject

    Unsolved
    6
    0 Votes
    6 Posts
    9k Views
    Christian EhrlicherC

    @david-azolai said in Undefined reference to staticMetaObject:

    I have the same problem and use CMake , what can I do?

    Show your CMakeLists.txt and describe exactly what you're doing / trying to do.

  • What changed with QString::toStdString() in QT6?

    Solved
    24
    0 Votes
    24 Posts
    3k Views
    Christian EhrlicherC

    @Xinlong Yes, you can not mix different msvc runtimes in one executable.

  • How to stream audio to QAudioSink in a separate thread

    Unsolved
    23
    0 Votes
    23 Posts
    3k Views
    T

    @paulmasri
    Hi, I'm encountering the exact same issue with Qt 6.5.1. Have you found a solution yet?

  • Project ERROR: Unknown module(s) in QT: axcontainer

    Unsolved
    14
    0 Votes
    14 Posts
    3k Views
    B

    @Christian-Ehrlicher Okay, I understand. Thank you

  • 0 Votes
    2 Posts
    174 Views
    JonBJ

    @howerl
    Just this was asked the other day, there will be a recent thread for this maybe a week ago. the sad upshot was that it appears to be a PySide issue, with currently no known fix. I asked the other poster to try with PyQt instead of PySide and it worked fine....

    EDIT
    It's https://forum.qt.io/topic/152615/why-does-calling-dynamiccall-and-querysubobject-always-get-an-error-in-qaxwidget , and you were the poster, though you don't even reference that from here which would at least have been helpful. So you already know the answer, what's the point of this new thread? You know what the problem is, and you know there is apparently no solution with PySide6, so....

    Have you reported this on the Qt bug tracker? You really need a Qt PySide developer to have a look at this issue.

  • Not able to import custom QML components

    Unsolved
    9
    0 Votes
    9 Posts
    897 Views
    Ash VA

    @Axel-Spoerl
    Thanks for your support Axel.

    Finally, the issue was solved. I saw the path of main.qml and added the AudioInfoBox.qml file the same way, with the same path prefix. I added the AudioInfoBox.qml file like this.

    34ddfe2d-82bf-4203-ba88-9f6698197b05-image.png

    Now it's working fine! 👏️

  • 0 Votes
    3 Posts
    1k Views
    piervalliP

    @Dmitriano
    Sorry, have you the script to compile 5.15?

    Thanks