Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.7k Posts
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    3 Votes
    29 Posts
    34k Views
    A
    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
    4 Posts
    43 Views
    SGaistS
    @pehg hi, While taking a quick look at the header file mentioned in the article I stumbled upon this issue on the llvm project that might explain the situation. I think you don't have __cpp_lib_three_way_comparison defined with clang 18.
  • Getting application startup to call main()

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    PerdrixP
    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
    4
    0 Votes
    4 Posts
    48 Views
    Axel SpoerlA
    @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.
  • Qt6.9.1 qml demo: QPainter::begin: Paint device returned engine == 0, type: 3

    Unsolved
    3
    0 Votes
    3 Posts
    44 Views
    Q
    @SGaist 6.9.1 + vs2022
  • QtWebEngineWidgets not showing checkboxes properly

    Unsolved
    5
    0 Votes
    5 Posts
    80 Views
    T
    QtWebEngine in Qt6 does not render changes to CSS radio-buttons and checkboxes when the change happens with a mouse click. The change from True->False or False->True happens in radio-buttons, but it is not drawn/rendered on the QtWebEngineView. Similarly, checked->unchecked and unchecked->checked happens with mouse clicks on checkboxes, but the change is not shown on the QtWebEngineView. I thought it might be possible to capture the state change and redraw the QtWebEngineView so that the change shows. But there is no way to capture state changes in CSS radio-buttons and checkboxes. In Qt5/QtWebKit the state changes are shown right out of the box without any problems. It is a bug in Qt6/QtWebEngine.
  • 0 Votes
    8 Posts
    100 Views
    I
    @Jammin44fm said in Problem running application on Linux. Ubuntu 22.04 LTS + Wayland platform.: Does this mean I will need to distribute a different version of the libQt6WaylandClient for each version of Qt that i'm using? To make it simple - yes. The ABI promises Qt makes are for applications making use of published APIs. They do not extend to different modules of the framework itself - you should never mix say QtGui 6.8.1 with QtCore 6.8.0; same for QPA plugins (as they make use of private API). Basically, when bundling Qt for distribution - you must copy ALL modules and plugins that the application uses, and not allow any to be used from the containing system. QtWaylandClient included in that - though it needs to be usually manually included as tools scanning dynamic library dependencies often can't see it. What is the status of the linuxdeploy-plugin-qt? it doesn't look like it's part of the official Qt package? It is not official. It works, I use it. As for status, I believe it is actively maintained, although as with pretty much all AppImage tooling it is done by one guy in a basement. Deploying Wayland plugins with linuxdeploy-qt has to be done with care. It works for me by including waylandcompositor in the EXTRA_QT_MODULES environment variable.
  • Not compilated Qt from sources

    Unsolved
    7
    0 Votes
    7 Posts
    190 Views
    JKSHJ
    @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
  • Why do apps built with PySide6 have a more cramped menu bar than native KDE apps?

    Unsolved
    9
    0 Votes
    9 Posts
    227 Views
    J
    Typo: python3-pyside6 in the last message instead of pyside5, I'm not sure if it's actually broken, even with a simple app (import and print the plugin search paths) I see error on Python initialization.
  • 1 Votes
    3 Posts
    807 Views
    B
    @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
    389 Views
    Christian EhrlicherC
    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
    4
    0 Votes
    4 Posts
    272 Views
    martin_kyM
    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.
  • How can I solve the problem of jom/nmake.exe exiting during this compilation process?

    Unsolved
    4
    0 Votes
    4 Posts
    41 Views
    SGaistS
    Hi, Some things to check: which version of VTK did you install ? Meaning, is it the one for Visual Studio ? did you try with their latest version which is the 9.5 series ? as silly as it may sound, are you sure that this version has Qt support enabled ?
  • Qt OPC UA callMethod

    Solved
    2
    0 Votes
    2 Posts
    59 Views
    Q
    I fixed this issue. It was a Qt 6.9.0 bug, but Qt 6.9.1 has the fix
  • Open a QDialog in QStyledItemDelegate

    Unsolved
    10
    0 Votes
    10 Posts
    251 Views
    Q
    @jawadulhassan Hi Thank you for the hint, the setModal(true) and setWindowModality(Qt::ApplicationModal) has no effect. the activateWindow() where do you mean I should locate it? If I see it right, the opening of the editor is done in the QAbstractItemView. Do you have a sample which fixes this issue?
  • Unable to save PySide6 documentation

    Unsolved
    8
    0 Votes
    8 Posts
    324 Views
    SGaistS
    Did you already check the bug report system to see if other people reported similar issues ?
  • Unknown module(s) in QT: help

    Solved
    2
    0 Votes
    2 Posts
    47 Views
    M
    The solution is qt6-help-devel
  • QFrame: official shape/shadow to not fill background ?

    Unsolved
    8
    0 Votes
    8 Posts
    322 Views
    D
    Thank you, I'll have a look at its code to mimic its behavior.
  • prevent cursor from redrawing

    Unsolved
    3
    0 Votes
    3 Posts
    132 Views
    A
    Hi SGaist, Thank you :) I am using Qt 5.15.2 I have attached a small example that contains three classes: A mainwindow, a testwidget and a box. The testwidget and box are both subclasses of QLabel. The mainwindow contains the testwidget, the testwidget captures mouse events which move the box to follow the mouse. Even when the mouse is not moving, the box flickers continually. Oh, I tried to upload the file, but received the message that "I do not have enough privileges for this action" It can be downloaded here: https://www.dropbox.com/scl/fi/o493be8f997ti29p037rc/QtCursorExample.zip?rlkey=ck18a9zqzb2r9q3vb7ig2zqoj&st=gjlg1mpx&dl=0 Thanks, fallen
  • QCombobox stylesheet issue

    Unsolved
    2
    0 Votes
    2 Posts
    96 Views
    SGaistS
    Hi and welcome to devnet, Shouldn't you set the radius on the drop-down as well ? See the QComboBox example in the stylesheet documentation.