Skip to content

Qt 6

This is where all Qt 6 related questions belong

828 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

  • QtWebEngine cannot save cache

    Solved
    3
    0 Votes
    3 Posts
    601 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
    140 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
    199 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
    239 Views
    A

    Thanks it work.

  • (business edition) Building Qt 6.8.0 for QNX710

    Unsolved
    5
    0 Votes
    5 Posts
    87 Views
    E

    @Christian-Ehrlicher I found it. Thank you!

  • 0 Votes
    5 Posts
    106 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
    187 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
    347 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
    88 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
    597 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
    395 Views
    serkan_trS

    Thank you for the information.

  • GPL License and Qt Application Manager

    Unsolved
    3
    0 Votes
    3 Posts
    174 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
    253 Views
    J

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

  • Qt6, TextField not work in Android

    Unsolved
    4
    0 Votes
    4 Posts
    271 Views
    O

    Is Qt a balloon? Working with Qt on Android has been a struggle for a year. I downloaded Qt 6.8, and this issue still hasn't been resolved. Can you believe it? It'll be 2025. Qt 6.8 has been released, and we still can't use input on Android? I used to enjoy developing with Qt, but I'm starting to wonder if I learned it for nothing.

    I'm using Qt 6.8 and I've created an Android application for testing, which includes a TextField. When I click on the TextField, the keyboard comes over the input, and I can't see what is being typed.

  • Error during build from source (AutoMOC)

    Solved
    7
    0 Votes
    7 Posts
    298 Views
    A

    if you want to benefit from an LTS, even with free version of Qt, you have to use the latest minor release available, that is 6.5.6, which brings some bugfixes and security patches.
    If you use 6.5.0, you won't benefit those fixes that have been introduced from 6.5.1 to 6.5.6.
    And it's the same for any version, not only LTS.

    @Christian-Ehrlicher said in Error during build from source (AutoMOC):

    There is no advantage for a non-paying customer to stick at a LTS version at all.

    I personnaly prefer using the latest LTS over latest version when I don't need the new features as new features also come along with potential new bugs and security issues.

    Use the pre-compiled binaries from the Qt online installer - much easier to use and no problems during compilation.

    I agree, self-building is not needed.

  • 0 Votes
    5 Posts
    271 Views
    JonBJ

    @JuFu
    I do not believe that a "crash" error when running your program can be anything like or have any relation to a "crash" from a compiler. They are two totally different issues.
    I do not believe you cannot obtain a "stack trace" if your program crashes at runtime. Try running it from inside a debugger.