Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k 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.
  • QListWidget with checkboxes - checking more than one row at a time

    Unsolved
    14
    0 Votes
    14 Posts
    115 Views
    jeremy_kJ
    @Jackmill said in QListWidget with checkboxes - checking more than one row at a time: @jeremy_k said in QListWidget with checkboxes - checking more than one row at a time: A flag or list of indexes to be modified could accomplish the same goal while leaving view management intact. How might I do this? I'm having trouble thinking of a way to call setData without causing an endless loop. void onDataChanged(const QModelIndex topLeft, const QModelIndex bottomRight, const QList<int> &roles) { static bool updating = false; if (roles.contains(ItemDataRole::CheckStateRole) && !updating) { updating = true; auto value = topLeft.data(ItemDataRole::CheckStateRole); for (auto index : selectionModel.selectedIndexes()) model->setData(index, ItemDataRole::CheckStateRole, value); updating = false; } } The code could also disconnect this (and only this) slot from the signal prior to the loop, and reconnect it at the end.
  • Migrating from MFC to Qt: How to install qtwinmigrate

    Unsolved
    4
    0 Votes
    4 Posts
    482 Views
    SGaistS
    Hi and welcome to devnet, Did you setup the widgets module properly ?
  • Qt OPC UA callMethod

    Unsolved
    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • Install third party shared libraries with QT's cmake deployment API

    Unsolved
    1
    0 Votes
    1 Posts
    25 Views
    No one has replied
  • Getting "qt.qpa.mime: Retrying to obtain clipboard" in the console output

    Unsolved
    1
    0 Votes
    1 Posts
    26 Views
    No one has replied
  • QGraphicsView::mousePressEvent not triggering

    Unsolved
    6
    0 Votes
    6 Posts
    66 Views
    JonBJ
    @james-b-s I don't know whether or why this would differ from Windows to some Linux window manager, or whether there is anything different in the Qt implementation, but maybe in Linux WM the mouse release event is going to the context menu?
  • qt unit test build error: The "XmlPeek" task failed unexpectedly

    Unsolved
    2
    0 Votes
    2 Posts
    29 Views
    SGaistS
    Hi, Does your test contain any actual code ? If so, try to empty it to see if it is still failing.
  • Trying to load a frame of widgets using a shared pointer

    Unsolved
    2
    0 Votes
    2 Posts
    36 Views
    Christian EhrlicherC
    @leinad said in Trying to load a frame of widgets using a shared pointer: Would you know how I can fix this Pass the nacked pointer with .get() and wonder why it crashes as soon as your shared pointer goes out of scope. in other words - don't use a shared pointer for QObjects.
  • How C++ 20 Setup for Qt creator ?

    Solved
    3
    0 Votes
    3 Posts
    53 Views
    DervishD
    @cristian-adam Thanks, it works. Sorry I am new to all this.
  • license

    Unsolved
    2
    0 Votes
    2 Posts
    45 Views
    P
    Here's the starting point: https://www.qt.io/qt-licensing "Every person using Qt needs to comply with either Open Source License (GPL and LGPL) or Qt Commercial License".
  • Qt6 CMake qt_add_resources with LANG why does order matter ?

    Unsolved
    5
    0 Votes
    5 Posts
    119 Views
    F
    @SGaist Yes of course, I've put a minimal compilable project to reproduce the issue on github: qt_cmake_localized_resources_issue
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    36 Views
    No one has replied
  • python script integration with QT Desktop software

    Unsolved
    5
    0 Votes
    5 Posts
    100 Views
    S
    @JonB I found a good solution: pythonqt https://github.com/MeVisLab/pythonqt
  • How to preserve QScrollArea scrollbar position when window is maximized and restored?

    Unsolved
    4
    0 Votes
    4 Posts
    99 Views
    Z
    Use signal for parent of QScrollArea: windowStateChanged(Qt::WindowState windowState) and save/restore parameters for QScrollArea
  • cmake install of Qt build does not install debug artifacts

    Solved
    3
    0 Votes
    3 Posts
    303 Views
    A
    Having just come across this specific problem, it should be mentioned in the documentation here: https://doc.qt.io/qt-6/windows-building.html And if there's a cmake command line equivalent, then definitely here where the "-debug-and-release" is called out. https://doc.qt.io/qt-6/configure-options.html
  • How do I check for Shift + Tab?

    Unsolved
    9
    0 Votes
    9 Posts
    192 Views
    SGaistS
    It's not a mapping from multiple keys to one. These are just special values for that specific enum that will end up creating the sequence corresponding to the right platform specific version of the short-cut.
  • Does QPrintDialog open the system print dialog?

    Unsolved qprintdialog native dialog
    4
    0 Votes
    4 Posts
    1k Views
    RokeJulianLockhartR
    @stevej, see post/529035: On Windows and macOS, the native print dialog is used, which means that some QWidget and QDialog properties set on the dialog won't be respected. I can confirm on Linux that it utilises its own modal. I don't believe that a portal exists for this yet.
  • 0 Votes
    5 Posts
    260 Views
    Pl45m4P
    @johnzhou721 said in How Should One Register Standard QActions in the Menu Bar to Perform the Appropriate Action?: are those edit actions usually not present if there’s multiple line edits then? The shortcut is pretty much the same as pressing Ctrl + X. What else do you want to "cut"? If there is nothing to which you can apply "cut", nothing happens. Same as if you just press Ctrl + X without selecting some file/text.
  • Include large resources using Visual Studio?

    Unsolved
    3
    0 Votes
    3 Posts
    90 Views
    T
    @Christian-Ehrlicher QT VS Tools is automatically including .qrc files, so I'm not using qt_add_resources. Also, I'm not using CMAKE.