Skip to content

Qt 6

This is where all Qt 6 related questions belong

860 Topics 4.2k Posts
QtWS25 Last Chance
  • 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
  • There has a the difference about QTransform between qt5 and qt6, How can I do?

    Unsolved
    6
    0 Votes
    6 Posts
    95 Views
    Christian EhrlicherC
    @JohanSolo said in There has a the difference about QTransform between qt5 and qt6, How can I do?: if and only if its determinant is different from zero, Yeah, forgot the not, thx & fixed
  • 0 Votes
    1 Posts
    128 Views
    No one has replied
  • Qt Applications Font doesn't look right.

    Unsolved
    3
    0 Votes
    3 Posts
    88 Views
    S
    Occasionally I have seen tiny font on Windows with our own Qt application. This was always fixed by rebooting Windows.
  • Example code for applying for Android permissions in QT 6.5.3.

    Unsolved qt6 android
    6
    0 Votes
    6 Posts
    493 Views
    F
    @Gracy The question is pretty old, but i know the answer... First, make sure, the permissions are added. Maybe you are missing the following: https://doc.qt.io/qtcreator/creator-deploying-android.html#editing-manifest-files To check and request permissions you can do: QFuture permission_request = QtAndroidPrivate::requestPermission("android.permission.WRITE_EXTERNAL_STORAGE"); switch(permission_request.result()) { case QtAndroidPrivate::Undetermined: qWarning() << "Permission for writing to the storage undetermined!"; break; case QtAndroidPrivate::Authorized: qDebug() << "Permission for writing to the storage authorized"; break; case QtAndroidPrivate::Denied: qWarning() << "Permission for writing to the storage denied!"; break; }
  • Qt CAN Bus (vectorcan) with Vector VN1640A only receives data when CANoe is running

    Unsolved
    6
    0 Votes
    6 Posts
    124 Views
    aha_1980A
    Hi @eric_1994 It's interesting that you say the Kvaser device is working. Which CAN plugin do you use for that? Regarding your Vector problem: Is there anything you can do from the Vector API side (like creating a log of API calls) or do you think you could debug the Qt plugin? One question that is still unanswered: Can you send from the Qt CAN Example?
  • 0 Votes
    4 Posts
    3k Views
    N
    Could not find a package configuration file provided by "Qt6HostInfo" with any of the following names:
  • Build error on qt 6.8

    Solved
    5
    0 Votes
    5 Posts
    239 Views
    Q
    @Axel-Spoerl said in Build error on qt 6.8: gcc --version it say: gcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7) Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • Qt6 + Gstreamer + CMake

    Solved
    3
    0 Votes
    3 Posts
    143 Views
    A
    Oops! That was right under my nose, but I still managed to miss it. Many thanks, good sir!
  • CMake support for qt-version we are linking to

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    C
    running into this issue years later... for me the line find_package(Qt6 QUIET COMPONENTS Core Gui Widgets Multimedia MultimediaWidgets) will NOT populate the version numbers, only repeating with find_package(QT NAMES Qt6) will finally do.
  • QApplication Stylesheet completely breaks QGraphicsProxyWidget

    Unsolved
    5
    0 Votes
    5 Posts
    211 Views
    P
    Thank you very much.
  • QOpenGLFunctions_4_5_Core static variables

    Solved
    4
    0 Votes
    4 Posts
    146 Views
    SGaistS
    Hi, You realize that using all this static stuff is a really good start to a pretty nightmarish maintenance and debugging experience ?
  • How to prevent a window from being moved?

    Unsolved
    7
    0 Votes
    7 Posts
    202 Views
    Mike ChristensenM
    @JonB Yea, I thought writing a dock/taskbar "Waybar replacement" might be a fun weekend project and a chance to get back into C++ and learn Qt. I never imagined this rabbit hole. Anyway, I guess Wayland is still [relatively?] new and hopefully there will be solutions for these use cases as more major distros go Wayland native. It does give me respect for those implementing entire desktop environments such as KDE Plasma on Wayland since it's now clear all the fire hoops they have to jump through to get this stuff working.
  • Qt Graphs. Building 2d plot using c++ only.

    Unsolved
    16
    0 Votes
    16 Posts
    2k Views
    Pl45m4P
    @SandSnip3r said in Qt Graphs. Building 2d plot using c++ only.: Isn't the Graphs moved out of technical preview as of 6.8? Should be but as you can see from OPs question QGraphsView, the C++ API to access the QML backend is mentioned in the documentation but not implemented nor it has it's own documentation page... the links lead to nowhere... :( Maybe use the QML interface for now and handle it like any other hybrid QML/C++ app QGraphs should be 2D and 3D + C++ and QML... but not everything seem to work right now.
  • How to get Qt6 6.8 on ARM64 Ubuntu 22.04

    Unsolved
    4
    0 Votes
    4 Posts
    163 Views
    JoeCFDJ
    @mrkprdo Sorry, my bad. I fixed it.
  • I cannot use the design studio totally

    Unsolved
    2
    0 Votes
    2 Posts
    96 Views
    jsulmJ
    @hdugzx I never used Design Studio, but there should be a menu like "View" or "Windows". Look in "..." in the top-right corner. You also can check the settings. In QtCreator you can disable/enable menu by pressing Ctrl-Alt-m - maybe it also works in Design Studio.
  • Audio format issue with Qt 6.8.2, all worked well with 6.6.3

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

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Doubts about #setAutoFillBackground

    Solved
    4
    0 Votes
    4 Posts
    243 Views
    SGaistS
    The documentation is quite clear: by default this property is false. There's no reason to pre-fill the background if you are going to fully paint it anyway.
  • QList::emplace_back()

    Unsolved
    4
    0 Votes
    4 Posts
    148 Views
    J.HilkJ
    @Shankarlinga-M thanks for your input! The use case is basically a container class, with - almost only -, readOnly access from outside. It will be read from user provided files during runtime and exist until a new set is read or the program is closed. The objects are created and "stored" in a List/Vector to be passed to where they are need to be read. So the list should per design choice be immutable. And I would like to enforce it. The default move assignment operator is deleted due to const members, so thats out too. Looks so far, as if the cleanest way would be using std::vector. Not sure how much refactor/extra work that will be :(