Skip to content

Qt 6

This is where all Qt 6 related questions belong

843 Topics 4.1k Posts
  • 0 Votes
    2 Posts
    166 Views
    jsulmJ

    @Melliora And how can anybody tell you why it does not work from this description?!
    How about posting the non-working code (the loop)?
    "I guarantee there are no mistakes in the for loop" - this contradicts with you saying the loop does not end...

  • How to display an multiframe DICOM file

    Unsolved
    2
    0 Votes
    2 Posts
    213 Views
    JoeCFDJ

    @ManiRon28
    you can find some here. Both Qt and VTK are needed.
    https://github.com/search?q=dicom+qt

  • Create a docker image for Qt 6

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SebastianMS

    @Youness96 Take a look at aqtinstall
    Use example:

    RUN pip3 install aqtinstall; \ RUN aqt install-qt --outputdir /opt/qt linux desktop 6.4.3 gcc_64 -m
  • QmlApplicationEngine failed to load component qrc:/main.qml

    Unsolved
    2
    0 Votes
    2 Posts
    184 Views
    JoeCFDJ

    @xavierbaez The similar code I made with Q5 is as follows.

    pragma Singleton import QtQuick 2.0 QtObject { readonly property color generalBackgroundColor: “000000” }

    And in Qt 6, version number is not needed. Can you try

    pragma Singleton import QtQuick QtObject { readonly property color generalBackgroundColor: “000000” }
  • AutoMoc: The Property will be invalid

    Solved
    4
    0 Votes
    4 Posts
    270 Views
    X

    @Christian-Ehrlicher Okay I was able to fix it creating a function

    currentFileIndex()
  • 0 Votes
    9 Posts
    509 Views
    X

    @J-Hilk Thank you that worked.
    I also changed the header to:

    void setLocale(const QString& locale);
  • Qt6.5.0: Resource theme link error

    Solved
    2
    0 Votes
    2 Posts
    336 Views
    T

    I've to answer my own question. The problem was that I had do add a dependency to the file build.gradle. The section should look like:

    dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.preference:preference:1.1.0' }

    The second dependency ('androidx.preference:preference:1.1.0) is necessary if you use the new setup system (preferences) from Android.

    A.T.

  • 0 Votes
    20 Posts
    2k Views
    X

    @JonB said in cannot convert ‘const QString’ to ‘const QLocale&’:

    @xavierbaez said in cannot convert ‘const QString’ to ‘const QLocale&’:

    QRegExp re(QString(matchPattern).arg(_params.fileName)); return re.exactMatch(logFileName);

    Try (untested)

    QRegularExpression re(QRegularExpression::anchoredPattern(QString(matchPattern).arg(_params.fileName))); return re.match(logFileName).hasMatch();

    You will need to change #include <QRegExp> to #include <QRegularExpression>.

    Yeah that worked thank you so much.

  • Qt Creator releases against Qt

    Solved
    3
    0 Votes
    3 Posts
    258 Views
    S

    @Christian-Ehrlicher I see, thank you for the response. If this is the case, based on the information here I think the answer is 'soon', so I'll probably just wait.

    https://www.qt.io/blog/qt-6.5-beta-released

  • 0 Votes
    10 Posts
    1k Views
    S

    This issue has been fixed in 6.4.2.
    See details in : https://bugreports.qt.io/browse/QTBUG-99259

  • Will the Qt6 support UWP platform?

    Solved
    5
    0 Votes
    5 Posts
    576 Views
    Q

    @jsulm During this year's Microsoft Build conference Microsoft announced the
    unification of Win32 and UWP for their IoT offering.

    Thanks

  • Unable to run the WMIC command through QProcess in Qt6.4.0

    Unsolved
    3
    0 Votes
    3 Posts
    261 Views
    JonBJ

    @Pradson
    Apart from obviously putting in error handling if you want help with errors as @jsulm says. Did you try making that command line separate arguments instead of a single one? Did you try running just a command with empty arguments of wmic?

  • CMake support for qt-version we are linking to

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    X

    Hello
    I am trying desperately to get this working, it is not.
    I am not sure what I am doing wrong.
    Is there a special path or something?
    For some reason, it is not detecting Qt6
    I am using Manjaro

  • 0 Votes
    4 Posts
    1k Views
    M

    I have created a bug report regarding this. I used the minimal example that you have created in the bug report. Thanks for sharing your minimal example.

    https://bugreports.qt.io/browse/QTBUG-111968

  • Can I create QApplication in DLL with Qt6.4.2?

    Solved
    4
    0 Votes
    4 Posts
    392 Views
    SGaistS

    @Cata123 if you need to set that variable, it means that the folder containing the plugins is not at the expected place.
    The solution itself is not bad per se though.

    Qt 4 has a different architecture for the platform backend part hence the "new" behaviour.

  • Qt6 Cross Compile for Windows

    Unsolved
    3
    0 Votes
    3 Posts
    493 Views
    I

    @pavanbellary But why cmake try to install it when it is not compilled and there are no errors at configure and at compilation.

  • where to add PrintSupport in Qt6 CMakeLists.txt

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    J

    @Habib123
    you should put:
    find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets PrintSupport)

    and link with the finded library:

    target_link_libraries(Test PRIVATE Qt${QT_VERSION_MAJOR}::Widgets PRIVATE Qt${QT_VERSION_MAJOR}::PrintSupport)

  • 1 Votes
    1 Posts
    486 Views
    No one has replied
  • 0 Votes
    2 Posts
    343 Views
    S

    @Spazz have you solved the problem? It seems tha I met the same trouble that the vertexCount is alway 0.

  • yocto build error wiht meta-qt6

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