Skip to content

Qt 6

This is where all Qt 6 related questions belong

835 Topics 4.1k Posts
  • 0 Votes
    11 Posts
    865 Views
    Pl45m4P

    @Donald9307

    Just to clear the confusion, do you have any model or in which way do you use your query?
    Because there is no QSqlQuery::setQuery() (as in the title).

    But good to hear that it worked for you :)

  • Error on initializing QByteArray

    Unsolved
    7
    0 Votes
    7 Posts
    420 Views
    SGaistS

    You're welcome !

    Since you have the information you need, please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum members may know a solution has been found :-)

  • LNK2001 _DLLMAINCRTStartup problem

    Unsolved
    1
    0 Votes
    1 Posts
    244 Views
    No one has replied
  • How to access Sqlite3 aggregate recordset

    Solved
    7
    0 Votes
    7 Posts
    573 Views
    D

    @SGaist Hi. No I didn't. That fixed the problem I was having. Thanks so much for your help.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • win10-Raspi cross-compiling

    Unsolved
    1
    0 Votes
    1 Posts
    255 Views
    No one has replied
  • Qt 6.5 MediaPlayer and tcp stream

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    kbarniK

    @SGaist Thank you! That should be probably it!
    I will test it on 6.5.1 when it will be released and report back.

  • Install Qt6StateMachine with aqt install-qt

    Unsolved
    2
    0 Votes
    2 Posts
    568 Views
    Paul ColbyP

    Hi @xavierbaez,

    I am trying to install libQt6StateMachine.so.6 with aqt install-qt

    Once you've installed aqtinstall, try:

    aqt install-qt linux desktop 6.5.0 gcc_64 -m qtscxml

    I generated that command line via this awesome tool :)

    Cheers.

  • Qtmultimedia windows 10 and linux

    Unsolved
    4
    0 Votes
    4 Posts
    235 Views
    SGaistS

    Would you be able to check with ffmpeg directly to see if it is working on Windows ?

  • include xc framework in cmake

    Solved
    5
    0 Votes
    5 Posts
    951 Views
    J

    @Louise , hi

    If you don't mind can you share your sample CMAKE , i have FacebookSDK pulled using cocoapod , there's also .framework but i don't know how to include it using CMAKE ?

    thanks

  • Qt6 dev on Ubuntu 20.04 command line

    Unsolved
    12
    1 Votes
    12 Posts
    8k Views
    SGaistS

    @Paul-Colby Good catch ! Copy-Paste without cleanup error and thanks for the additional tip :-)

  • 0 Votes
    2 Posts
    149 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
    189 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
    965 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
    173 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
    244 Views
    X

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

    currentFileIndex()
  • 0 Votes
    9 Posts
    445 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
    306 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
    1k 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.