Skip to content

Qt 6

This is where all Qt 6 related questions belong

835 Topics 4.1k Posts
  • Qt6.6.1 error question (C2882 : QCP)

    Unsolved
    6
    0 Votes
    6 Posts
    507 Views
    Teemo of LOLT

    @sierdzio okay. Thank you. I will try. and tell you about result :)

  • missing lrelease

    Unsolved
    2
    0 Votes
    2 Posts
    861 Views
    Christian EhrlicherC

    So you did not install Qt6 via the online installer but want to use the one from Ubuntu? Then you also have to install all Qt development packages.

  • 0 Votes
    11 Posts
    4k Views
    malikcisM

    @DeepakVishak
    SGaist is right. custom GStreamer pipelines have been dropped in Qt 6 Multimedia, however you can achieve the same using qml6glsink.
    Have a look at this example:
    https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/1.24/subprojects/gst-plugins-good/tests/examples/qt6/qmlsink?ref_type=heads

  • Converting QString to a quoted shell argument.

    Unsolved
    3
    0 Votes
    3 Posts
    364 Views
    JonBJ

    @Basile_Starynkevitch
    I don't know what your command is or how you are presently sending it to QProcess as you do not show these.

    You can normally leave the correct quoting to QProcess with an argument list. If, for some reason, you have a string and want to split it into arguments for QProcess you can use QStringList QProcess::splitCommand(QStringView command). Also void QProcess::startCommand(const QString &command, QIODeviceBase::OpenMode mode = ReadWrite) presumably uses that internally.

    Note however that you reference https://docs.gtk.org/glib/func.shell_quote.html and that says

    Quotes a string so that the shell (/bin/sh) will interpret the quoted string to mean unquoted_string.

    Quoting to a shell like /bin/sh can have its own rules. For example, echo '$HOME' and echo "$HOME" behave differently. I don't know how/whether you deal with that. And your GLib shell_quote ignores this.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • for C++ language standard

    Solved
    10
    0 Votes
    10 Posts
    1k 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
    354 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
    173 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
    273 Views
    pedisChenP

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

  • Fail to configure Src

    Solved
    9
    0 Votes
    9 Posts
    633 Views
    pedisChenP

    @Christian-Ehrlicher Thank you very much!

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

    Solved
    2
    0 Votes
    2 Posts
    250 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
    724 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
    632 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
    227 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
    138 Views
    No one has replied
  • 1 Votes
    5 Posts
    713 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
    166 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
    456 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
    184 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
    310 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.