Skip to content

Qt 6

This is where all Qt 6 related questions belong

816 Topics 3.9k Posts
QtWS25 Call for Papers
  • for C++ language standard

    Solved
    10
    0 Votes
    10 Posts
    474 Views
    Teemo of LOLT

    @sierdzio I replied to someone else by mistake. I noticed it late. It seems similar to what I found. Link: https://stackoverflow.com/questions/70373606/how-to-fix-qt-requires-a-c17-compiler. Thank you for the detailed explanation. In my case, although I don't encounter errors, it seems I need to reconfigure the C++ standard language setting. Thank you

  • Q_D macro not working

    Unsolved
    7
    0 Votes
    7 Posts
    230 Views
    JonBJ

    @Ash-V
    May I ask: I thought you were a "beginner" at Qt, maybe C++ too (but perhaps not). If you know what you are doing, and have a good usage case, using all the Q_D and d_ptr stuff may be fine. But I, and most people, have never used them, so I just wonder whether you might be over-complicating things.

  • Question about Qtftp.

    Solved
    2
    0 Votes
    2 Posts
    125 Views
    Christian EhrlicherC

    @Teemo-of-LOL said in Question about Qtftp.:

    Does the qtftp functionality also come included in Qt5compat?

    No, QFtp is a separate library. As we already told you, you have to port them by yourself if you need it or use QNetworkAccessManager.

  • how to change ui designer Color?

    Solved
    4
    0 Votes
    4 Posts
    193 Views
    P

    May be this is a window11 system problem. now this problem is disappear

  • Fail to configure Src

    Solved
    9
    0 Votes
    9 Posts
    425 Views
    P

    @Christian-Ehrlicher Thank you very much!

  • How to compile 32bit QT6.5.3 from Src?

    Solved
    2
    0 Votes
    2 Posts
    161 Views
    Christian EhrlicherC

    Just open the 32 bit MSVC command prompt instead the 64bit one.

  • When exactly to use a Q_PROPERTY ???

    Unsolved
    8
    0 Votes
    8 Posts
    468 Views
    Ash VA

    @JonB
    Thank you Jon !

    Thanks for giving this additional valuable reply....

  • expected primary expression before ',' token

    Unsolved
    5
    0 Votes
    5 Posts
    415 Views
    Ash VA

    @Axel-Spoerl
    Thanks Axel !

    Thank you very much for your valuable reply !

  • Issues with the new Qt version using the older compiler

    Unsolved
    3
    0 Votes
    3 Posts
    181 Views
    TomZT

    @JonB said in Issues with the new Qt version using the older compiler:

    I don't know what "imported the old Q5.5.0 compiler into Qt6.6.2" means

    I expect the latter to be QtCreator.

    What I find more interesting is the mention of 5.5
    That release was tagged June 2015

  • I only have "QT Insight tracker" to download on my Mac

    Unsolved
    1
    0 Votes
    1 Posts
    108 Views
    No one has replied
  • 1 Votes
    5 Posts
    406 Views
    8Observer88

    @SGaist thanks! It could be a good solution but for a while I don't know how to build external libraries for Android and WebAssembly. I want to be able to make build executables of my applications for Android, Desktop, and WebAssembly. It is why I like Qt very much because it has built-in libraries for parsing XML, JSON, drawing with build-in OpenGL ES, and WebSockets library to make multiplayer game clients for Android, Desktop, and Web. I want to host Node.js game servers with physics engine on free hosting render.com I don't have time to study how to build external libraries for Android and WebAssembly. I only know how to build OpenAL-Soft for Android to play 3D sounds and how to call Web Audio API from WebAssembly.

  • Having errors in Android settings

    Unsolved
    2
    0 Votes
    2 Posts
    118 Views
    8Observer88

    @tunga had you solved the problem? Just for an experiment try to use jdk-17 and try to make these steps:

    set an another path for Android SDK location (create a new folder for Android SDK) try to press Set Up SDK and Open Android SDK download URL buttons:

    bdabc7e6-78b4-4a1c-a519-cb69277769e4-image.png

  • Deploying my application with my own library is failed.

    Solved
    7
    0 Votes
    7 Posts
    364 Views
    W

    @SGaist
    I set QMAKE_RPATHDIR += /usr/local/lib in pro file.
    Thanks for your reply and help.
    Have a nice day.

  • 0 Votes
    2 Posts
    138 Views
    TomZT

    @DesiVideoGamer don't know about "like qt5" but do look at the flickDeceleration property.

    Edit; I personally prefer it at something like 3000

  • Different behavior in Qt5 and Qt6 with respect to QML files

    Unsolved
    4
    0 Votes
    4 Posts
    197 Views
    TomZT

    @devil_coder said in Different behavior in Qt5 and Qt6 with respect to QML files:

    Specifically, behavioral difference when clicked was the main reason why I am suspecting z order can be causing the issue.

    As you have the code, and we don't. Please confirm that by playing with the z index in that qml.

    Please report back your findings.

  • 0 Votes
    1 Posts
    87 Views
    No one has replied
  • Problems with Qt6.4

    Unsolved
    6
    1 Votes
    6 Posts
    868 Views
    P

    @mercotui Thankyou! This worked for me aswell

  • no Qt platform plugin could be initialized.

    Solved
    5
    0 Votes
    5 Posts
    487 Views
    W

    @JoeCFD
    Thanks for your reply and help.
    I did what you mentioned, but it was failed.

    Have a nice day.

  • Qt6 Windows slower than Qt6 Ubuntu

    Solved
    47
    0 Votes
    47 Posts
    4k Views
    J

    @JonB

    Last edit my code :

    DataReceiver::DataReceiver(QObject *parent) : QObject{parent} { _manager.setAutoDeleteReplies(true); } void DataReceiver::start() { _connection++; if(_connection > 1) return; _takeData = true; run(); } void DataReceiver::stop() { _takeData = false; _connection = 0; _data.clear(); } void DataReceiver::getData() { _data.clear(); QString url = QString("http://localhost:%1/sample").arg(_port); QUrl _apiUrl(url); QNetworkRequest _request(_apiUrl); _reply = _manager.get(_request); connect(_reply, &QNetworkReply::readyRead, this, &DataReceiver::onReadReady); connect(_reply, &QNetworkReply::finished, this, &DataReceiver::onFinished); } void DataReceiver::run() { if(!_takeData) return; getData(); } void DataReceiver::onReadReady() { _data += _reply->readAll(); } void DataReceiver::onFinished() { emit sendData(_data); run(); }

    its working. time slow down from 65ms to 165ms but its working.

  • (RE) Update from qt5 to qt6

    Unsolved
    7
    0 Votes
    7 Posts
    282 Views
    Teemo of LOLT

    @JonB
    Thanks I'll read the link and ask if I don't understand!