Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.8k Posts
  • 3 Votes
    29 Posts
    34k Views
    Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible. Thanks for reporting this.
  • 0 Votes
    12 Posts
    371 Views
    Alright! it's all working thank you very much for your help. I've got my app being distributed with both the wayland and xcb files. I'm copying both libQt6WaylandEglClientHwIntegration.so.6 and libQt6WaylandClient.so.6 into my core Qt\libs\ dir. as well as the wayland-decoration-client, wayland-graphics-integration-client and wayland-shell-integration dirs into my Qt folder too. I thin it was the missing integration folders that was causing me to have problems earlier on. Thanks for you help everyone, and hopefully this can assist someone in the future. James
  • 0 Votes
    14 Posts
    426 Views
    @dextermagnific Yes, I have realized that, but installing python3-pyside6 through dnf in fedora kde spin seem to cause it to not boot, and I'd have to update all packages from a hooked up tty for it to boot. I'm going to make a reproducer with this issue when I'm less busy and probably talk on the fedora forums to see what they've got to say about this.
  • QTextBrowser causing a program to crash

    Unsolved 24 Apr 2016, 00:37
    0 Votes
    5 Posts
    1k Views
    hi, did you manage to solve the problem? I am writing a similar program, trying to make something like a read-only terminal out of QTextBrowser
  • 0 Votes
    5 Posts
    74 Views
    @SGaist Hi, I remember I saw that LLVM issue but I didn't know how to interpret it and I thought it was fixed. However, I just put the static asserts below in the code and compilation failed in the CI using clang and libc++, while it succeeded in the rest using GCC and libstdc++. #include <compare> // Check if the types support three-way comparison static_assert(std::three_way_comparable<QString>, " ** QString - three-way comparison NOT supported"); static_assert(std::three_way_comparable<QDate>, " ** QDate - three-way comparison NOT supported"); static_assert(std::three_way_comparable<QTime>, " ** QTime - three-way comparison NOT supported"); // Check if the C++20 three-way comparison is available static_assert(__cpp_lib_three_way_comparison >= 201907L, " ** Three-way comparison library NOT available"); I don't know if you refer to qcompare.h and qcomparehelpers.h. I just looked at them and I found usage of __cpp_lib_three_way_comparison . So, most likely my problem is due to the libc++ issue in the link you mentioned.
  • RichText: how to insert "icon from theme" ?

    Unsolved about 15 hours ago
    0 Votes
    3 Posts
    152 Views
    I guess this would work in a QLabel too because you use an image (not an icon) and its source is inside a file (real or resource). What I'm trying to achieve is to put an icon from the "system" theme. That's another story I think because it needs resolution. In fact I would like this function https://doc.qt.io/qt-6/qicon.html#fromTheme to be set as a source.
  • Qframe not apearing

    Unsolved about 13 hours ago
    0 Votes
    2 Posts
    130 Views
    Hi, If you want the buttons to be in your frame you need to add a layout to that widget and then add the buttons to that layout. Basically: build the widget with the content you want and add it to the QScrollArea.
  • 0 Votes
    5 Posts
    164 Views
    @SGaist Thank you for replying! I found the problem. I had a problem importing VTK-related dependency libraries. After I re-imported the related libraries, the function returned to normal.✌️
  • QtWebEngineWidgets not showing checkboxes properly

    Unsolved 6 days ago
    0 Votes
    8 Posts
    246 Views
    @Thaxila said in QtWebEngineWidgets not showing checkboxes properly: I am now trying compiling the source code with Mingw64 on Windows to see if that will get rid of the bugs we see on Windows. Since QtWebEngine (actually the underlying chromium engine) only builds under MSVC, not MinGW, under Windows this is a wasted effort....
  • Is there a simple way to make a triangle in Qt3D?

    Solved qt3d 7 days ago
    0 Votes
    5 Posts
    215 Views
    @Mitchal-Dichter said in Is there a simple way to make a triangle in Qt3D?: working directly with Direct3D, Metal, and Vulkan and skipping Qt Even though this is a Qt Forum here and Qt is in fact a great framework, sometimes you better look for something else. In your case, if you plan to render everything directly, you could also pick an immediate GUI, like ImGUI together with a Vulkan (on mac through MoltenVK), D3D or OpenGL backend. Fee free to post some updates on this or showcase your approach later :)
  • How to notify style change to apps ?

    Solved about 20 hours ago
    0 Votes
    5 Posts
    148 Views
    Thank you I'll go the inotify way. I just need to check that "commits" to the settings file are atomic so I won't be reading garbage (I read somewhere that QSettings handles well that).
  • How diff MousePress and shift/ctrl+MousePress?

    Solved about 22 hours ago
    0 Votes
    2 Posts
    129 Views
    i got it event->modifiers() & Qt::ShiftModifier
  • Unable to save PySide6 documentation

    Unsolved 15 days ago
    0 Votes
    9 Posts
    454 Views
    @SGaist Ya I've done plenty of digging over there. Maybe it helped because I finally did manage to make some progress (kind of). The ninja apidoc command now fails due to a number of exceptions like the one below. I couldn't come across any discussion of paths being misrepresented like this so I'm guessing I made a careless mistake somewhere - just not sure how to go about determining where exactly without a never ending trial/error. qt.shiboken.doc: (doc) While handling <snippet> in PySide6.QtXml.QDomNode, line 4: Failed to open file "\Qt\6.9.1\Src:C:\Users\Nicholas\Packages\BuildQt\pyside-setup\build\.venv\build\pyside6\doc\base\codesnippets:\Qt\6.9.1\Src\qtbase\src\xml\doc\snippets\code\src_xml_dom_qdom.py" for reading: The filename, directory name, or volume label syntax is incorrect.)
  • Getting application startup to call main()

    Unsolved 1 May 2023, 09:09
    0 Votes
    12 Posts
    2k Views
    You may wish to download the source code for DeepSkyStacker 5.1.0 which was first released step in the journey from MFC to Qt (5.1.0 is a hybrid). You can DL the source code from here: https://github.com/deepskystacker/DSS/archive/refs/tags/5.1.0.zip. The file of interest is DeepSkyStacker\DeepSkyStacker.cpp HtH David
  • QT 5.15 Windows Crash on deallocation of QModelIndexList

    Solved windows 5.15.2 2 days ago
    0 Votes
    4 Posts
    179 Views
    @The-Force said in QT 5.15 Windows Crash on deallocation of QModelIndexList: __acrt_first_block == header ...usually points at out-of-bounds access. if (!list.empty() || ui->classList->model()->rowCount() == 0) ui->shipCombo->setCurrentIndex(list.first().row()); If list is empty and the model's row count is zero, list.first() causes a read out of bounds and is probably the reason for the crash. Something like if (!list.empty() && ui->classList->model()->rowCount() != 0) ui->shipCombo->setCurrentIndex(list.first().row()); ...would make more sense to me.
  • 0 Votes
    3 Posts
    172 Views
    @SGaist 6.9.1 + vs2022
  • Not compilated Qt from sources

    Unsolved 16 days ago
    0 Votes
    7 Posts
    301 Views
    @Navadvipa-Chandra-das said in Not compilated Qt from sources: failed because the system could not detect libzstd.dll ... Although the instructions for installing Qt do not mention the zlib library as required for installation! That's strange; I never needed libzstd or zlib to build Qt on Windows. Zstandard and zlib are optional components. If you don't have them, your config.summary file should contain something like this: Support enabled for: Using pkg-config ....................... no Using vcpkg ............................ no udev ................................... no OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no OpenSSL 3.0 ............................ yes Using system zlib ...................... no Zstandard support ...................... no Thread support ......................... yes
  • 1 Votes
    3 Posts
    933 Views
    @schrute What I found to be effective, is to leave it as a bordered window, and just intercept the WM_NCCALCSIZE message, so that it does nothing. This basically gives you a bordered window, where you stop windows from drawing the borders. This way, when you implement your own title bar, aero snap will still work.
  • 0 Votes
    16 Posts
    529 Views
    I will not look at qml but maybe it's a good starting point for others who want to debug this.
  • .natvis Support for QJson Classes

    Unsolved 19 Feb 2025, 23:48
    0 Votes
    4 Posts
    279 Views
    I found these Natvis visualizers to be working fine with Visual Studio Code, if that helps you: https://github.com/narnaud/natvis4qt/tree/main/natvis QJson value visualizers are only included in the qt6.natvis file.