Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Unknown module(s) in QT: webenginewidgets

    Unsolved
    33
    1 Votes
    33 Posts
    3k Views
    enjoysmathE
    @Bonnie Apparently it only works for 6.10 for me. Followed the same procedure for each version.
  • Qt6 on Rasspery Pi lost package?

    Unsolved
    5
    0 Votes
    5 Posts
    125 Views
    MucipM
    Hi, I guess all the problems comes from Trixe? I think I need to go back to Bookwarm. Regards, Mucip:)
  • Qt6 linguist cannot respond to any input

    Unsolved
    3
    0 Votes
    3 Posts
    98 Views
    SGaistS
    Hi, Which version of lupdate/linguist are you using ? On which Linux distribution ? Did you check the logs of linguist to see if there's anything there ?
  • Hard to find some docs for QtGraphs in C++

    Solved
    3
    0 Votes
    3 Posts
    127 Views
    JKSHJ
    @jronald said in Hard to find some docs for QtGraphs in C++: For the code above, I can't find the keys (like seriesList, axisX, axisY) Those look like properties from GraphsView: https://doc.qt.io/qt-6/qml-qtgraphs-graphsview.html
  • QProgressBar has rendering errors or does not render at all

    Unsolved c++ qt6
    17
    0 Votes
    17 Posts
    1k Views
    Christian EhrlicherC
    There is no race condition but you use QGraphicsDropShadowEffect for a child widget with a radius of 10 so this widget is responsible for drawing everything of it's size + 10 pixel which overlaps with your progressbar. I don't understand why you use QGraphicsDropShadowEffect with this large radius at all. What do you want to achieve for a plain QWidget not in a QGraphicsScene?
  • 0 Votes
    1 Posts
    54 Views
    No one has replied
  • How to disable linking with Qt6EntryPoint in Visual Studio?

    Unsolved
    5
    0 Votes
    5 Posts
    737 Views
    S
    It seems to work if you add CONFIG-=entrypoint without any spaces(!) in "Additional project settings": [image: ec983e64-6a58-4f20-90a1-4f51aea64176.png]
  • 0 Votes
    1 Posts
    58 Views
    No one has replied
  • Tablet events behavior with stylus button click

    Unsolved
    3
    0 Votes
    3 Posts
    165 Views
    Q
    I filed it as a bug here.
  • Track selection in QListWidget after undo/redo operations

    Solved
    2
    0 Votes
    2 Posts
    93 Views
    JonBJ
    @gabello306 But your selectedIndices does not hold indices! Don't save pointers to anything, and not the whole QListWidgetItem. Save indexes, or "unique key" if it's appropriate and unique. I don't know whether with QModelIndexList QListView::selectedIndexes() you can save and reuse a QModelIndex, quite possibly not, but since you have a simple list you can just save an int of its index. Of course you also need to restore sort order if that is dynamic....
  • '_RemotableHandle' type error when trying to use ActiveX in Qt

    Unsolved
    4
    1 Votes
    4 Posts
    429 Views
    R
    I am having issues with this as well. When using the SendKeys() method of the same DLL, it requires VARIANT_BOOL, which is a short, but dumpcpp sees it as a bool which is half the size needed. I am modifying the output by hand to see if I can get it to work. Trying to use a union with a bool and VARIANT_BOOL, and then passing the bool as the reference parameter does not trick it. Something else might may be going on under the hood.
  • QMYSQL Driver not loading

    Unsolved
    11
    0 Votes
    11 Posts
    443 Views
    Christian EhrlicherC
    @king558 said in QMYSQL Driver not loading: t would be nice, if you say explicit, do not use libmysql.dll from MySQL Server in bol Why? It does work... Oh, and don't use a MySQL.dll from your external hard disc... Maybe also in bold?
  • [Solved] Tooltip on QAction

    9
    0 Votes
    9 Posts
    11k Views
    J
    nevermind, you just need to call setToolTipsVisible(true) and it works even for disabled actions. only the redraw behavior of actions with the same tooltip (if e.g. disabled for the same reason) is a bit weird
  • QStyle::drawControl() not correctly painting enabled/disabled state

    Solved
    6
    0 Votes
    6 Posts
    180 Views
    Christian EhrlicherC
    This problem is fixed with Qt6.10, maybe also with 6.9 but don't know exactly since there are a lot of changes in the windows11 style as it is not yet finished. This works fine for me with git HEAD: class Delegate : public QStyledItemDelegate { public: using QStyledItemDelegate::QStyledItemDelegate; void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { QStyleOptionButton buttonOption; buttonOption.rect = option.rect; buttonOption.palette = option.palette; buttonOption.direction = option.direction; buttonOption.fontMetrics = option.fontMetrics; buttonOption.styleObject = option.styleObject; buttonOption.state = QStyle::State_None; buttonOption.state |= index.column() % 2 == 0 ? QStyle::State_On : QStyle::State_Off; if (index.column() < 2) buttonOption.state |= QStyle::State_Enabled; option.widget->style()->drawControl(QStyle::CE_CheckBox, &buttonOption, painter, option.widget); } }; [image: 89ce1e26-8ddc-4464-b58e-72c1c19ca304.png]
  • Why does the combobox look disproportionate when applying the fusion style?

    Unsolved
    1
    0 Votes
    1 Posts
    57 Views
    No one has replied
  • Unable to compile Qt because of missing litehtml

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    L
    Similar issue for Qt 6.8.3 on MacOS Tahoe 26.1, except the missing file is litehtml/html.h. In my case litehtml is indeed installed locally (its a dependency of octave apparently, perhaps transitively via pyqt). And the missing file actually seems to exist at /opt/homebrew/include/litehtml/html.h. But for whatever reason the search path doesn't include the top level folder. I noticed there's an option to ignore the system litehtml, albeit without a convenient -FEATURE flag. Even adding -DQLITEHTML_USE_SYSTEM_LITEHTML=OFF to the configure invocation doesn't seem to do it. So I hacked it in by modifying the line in CMakeCache.txt after running configure: QLITEHTML_USE_SYSTEM_LITEHTML:BOOL=OFF
  • Making OpenGL and threading work nicely together: how to?

    Unsolved
    3
    1 Votes
    3 Posts
    133 Views
    Kent-DorfmanK
    I second @SimonSchroeder comment about OSspecific functions. You probly should not use Qt for a presentation layer on a project that expects high refresh rates. Qt is more suited for classical productivityGUIs rather than gaming.
  • when is a QString not really as QString - argument rejected by QFile

    Unsolved
    7
    0 Votes
    7 Posts
    228 Views
    Kent-DorfmanK
    In the C++ world don't pass mutable objects by const value. Pass them by const reference. ie const QString& filename QFile follows this paradigm...
  • Address lookup ... with QtLocation?

    Unsolved
    1
    0 Votes
    1 Posts
    73 Views
    No one has replied
  • qt_add_resources not adding resources

    Unsolved
    6
    0 Votes
    6 Posts
    248 Views
    l3u_L
    @SGaist said in qt_add_resources not adding resources: Hi, From a quick look at the qt_add_resources documentation: set(sources main.cpp) qt_add_resources(sources example.qrc) qt_add_executable(myapp ${sources}) It seems that qt_add_resources, in the context of a qrc file, should be called with a variable containing the list of files for your executable. So the core issue is that I can define my sources via target_sources, but this won't work with qt_add_resources, as this one only works with a (classic) list of files, and not with target_sources?