Skip to content

Qt 6

This is where all Qt 6 related questions belong

830 Topics 4.0k Posts
  • Read before posting in this category!

    Pinned Locked
    3
    6 Votes
    3 Posts
    3k Views
    SGaistS

    And now (incomplete at the time of this post): https://wiki.qt.io/New_Features_in_Qt_6.2

  • QtCreator open source installation error

    Solved
    16
    0 Votes
    16 Posts
    2k Views
    C

    On MacOS. you guys can use the below command:
    hdiutil attach qt-online-installer-macOS-x64-4.8.1.dmg
    /Volumes/qt-online-installer-macOS-x64-4.8.1/qt-online-installer-macOS-x64-4.8.1.app/Contents/MacOS/qt-online-installer-macOS-x64-4.8.1 --mirror https://qt.mirror.constant.com
    hdiutil detach /Volumes/qt-online-installer-macOS-x64-4.8.1

  • 0 Votes
    2 Posts
    80 Views
    SGaistS

    Hi and welcome to devnet,

    Did you already try to use a different mirror ?

  • 0 Votes
    8 Posts
    185 Views
    QtFriend2024Q

    @SGaist I followed the setup guide: https://developer.nvidia.com/embedded/learn/get-started-jetson-orin-nano-devkit

  • QtWebEngine cannot save cache

    Solved
    3
    0 Votes
    3 Posts
    695 Views
    K

    Hey, I wanted to check-in on this item; I know it was resolved back in 2021 for this case, but since updating to QT 6.8, even with creating a profile and setting the cache/cookie to save to disk, it doesn't seem to "remember" when logging out and back into KDE. Any insight, or maybe point me in the right direction, would greatly be appreciated.

  • 0 Votes
    7 Posts
    312 Views
    P

    Okey @J-Hilk , Tried by extending Activity, but it is not helping.

    Due to some reason not able to access the activity().

  • Qt 6.8 Duplicate symbol: qInitResources

    Solved
    11
    0 Votes
    11 Posts
    366 Views
    jsulmJ

    @Parvathy2020 said in Qt 6.8 Duplicate symbol: qInitResources:

    But I have installed 6.8.0 LTS version

    If 6.8 is a LTS version then also all 6.8.x versions are LTS and you should anyway upgrade to these versions to get all the bug fixes.

  • 0 Votes
    12 Posts
    13k Views
    A

    I just had this problem, and installing libglvnd-devel solved the problem.

    sudo dnf install libglvnd-devel
  • Build mysql driver on linux (Debian)

    Unsolved
    12
    0 Votes
    12 Posts
    351 Views
    A

    Thanks it work.

  • (business edition) Building Qt 6.8.0 for QNX710

    Unsolved
    5
    0 Votes
    5 Posts
    171 Views
    E

    @Christian-Ehrlicher I found it. Thank you!

  • 0 Votes
    5 Posts
    212 Views
    G

    I've tried it.
    QT6.5.3 automatically generates XML files, and manual modifications don't take effect.
    In addition, I have tried adding the permission in the.pro file ,by adding "ANDROID_PERMISSIONS += android.permission.CHANGE_WIFI_STATE" or ANDROID_MANIFEST method, but neither of them has been successful.

  • Unknown module Qt Multimedia

    Unsolved
    12
    1 Votes
    12 Posts
    8k Views
    S

    @Parvathy2020
    HI,
    I have installed QT multimedia thru "Qt Maintenance Tool" for Qt6.8.0 and now its working fine and error goes away.

  • DLLs written in C++ QT6 cannot be linked by C programs

    Solved
    6
    0 Votes
    6 Posts
    297 Views
    pedisChenP

    @Pl45m4 It is workable. thank you!

  • Qt 6 undefined reference to `qMain(int, char**)'

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    Q

    I have encountered the same error with a library I'm using (SDL2). I don't know whether it is the same library that is causing the issue, but for SDL2 I need to put up a macro to tell it that main() is being handled elsewhere (by QT):

    #include <QApplication> #define SDL_MAIN_HANDLED #include <SDL2/SDL.h>

    Hope it helps!

  • Qt Graphs. Building 2d plot using c++ only.

    Unsolved
    8
    0 Votes
    8 Posts
    519 Views
    Pl45m4P

    @Vernat

    Note: The Qt Charts module is in the maintenance phase. For new projects, consider using the Qt Graphs module. To render 2D charts, QtGraphs uses Qt Quick Shapes, which is a more modern GUI technology compared to the outdated Qt Graphics View Framework used by the Qt Charts module.
    ( https://doc.qt.io/qt-6/qtcharts-index.html )

    You said you don't want to deal with QML, but in the future the backend and how Graphs are rendered will be QML even in C++ use cases.

    @Vernat said in Qt Graphs. Building 2d plot using c++ only.:

    QValueAxis from the charts is not the same as QValueAxis from the graphs.

    What is different?
    Make your own axis?!

    I hope it will be fixed

    I don't think they will revert "improvements" to where it was before in QtChart with GraphicsView backend/rendering.

  • Why is this happening?Please help!

    Unsolved
    2
    0 Votes
    2 Posts
    145 Views
    SGaistS

    Hi and welcome to devnet,

    Without more details about what you are trying to do, it's impossible to answer.
    Are you trying to build that file manually ?
    Are you using a project management system ?
    If so, is it qmake ? cmake ? Something else ?
    If one of the two formers, read the QApplication class documentation. You have at the top the instructions on how to make it available with both these tools.

  • 0 Votes
    18 Posts
    875 Views
    pedisChenP

    @Pl45m4 Thank you for your reply. I tried. here is my example code:

    Version A

    void start_app(void) { int argc = 0; char*argv[] = {nullptr}; QCoreApplication a(argc, argv); a.exec(); } void init_dll() { std::thread th(start_app); h.detach(); }

    I use QLibrary to resolve "init_dll" function and run it.This time the main program is not blocked, no crash down occured .But the signal slot did not work, and QTCPSocket cannot be used.

    Version B

    void start_app(void) { int argc = 0; char*argv[] = {nullptr}; QCoreApplication a(argc, argv); a.exec(); } void init_dll() { start_app(); }

    when I call "init_dll" function in DLLs,the main program will be blocked from running, but the QTCPSocket and signal slots function is workable.

    How can I modify the DLL code so it doesn't block the main program's execution and still allows using QTcpSocket and other Qt components that depend on the event loop(QCoreApplication)?

  • ROS2 not added in QT6

    Solved
    12
    0 Votes
    12 Posts
    560 Views
    serkan_trS

    Thank you for the information.

  • GPL License and Qt Application Manager

    Unsolved
    3
    0 Votes
    3 Posts
    221 Views
    K

    Thanks Pl45m4 !

    I think it will be more reliable if I directly ask to Qt.

  • Configuring and building Qt for QNX

    Unsolved
    2
    0 Votes
    2 Posts
    293 Views
    J

    We need to set the Qt6HostInfo_DIR as a cmake parameter like -DQt6HostInfo_DIR=/home/...