Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.0k Posts
  • QMYSQL Driver not loading

    Unsolved
    11
    0 Votes
    11 Posts
    664 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
    274 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
    68 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
    175 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
    295 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
    102 Views
    No one has replied
  • qt_add_resources not adding resources

    Unsolved
    6
    0 Votes
    6 Posts
    312 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?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • 0 Votes
    3 Posts
    195 Views
    I
    @Jibun-no-Kage why are you running the application as root?
  • Suitable kit Issue

    Solved
    5
    0 Votes
    5 Posts
    266 Views
    N
    Thanks @cristian-adam
  • What should I do to fix the background black color?

    Unsolved
    3
    0 Votes
    3 Posts
    198 Views
    nicker playerN
    QT 5.14.1 and windows 7 and windows 11 I found the error code line. if I used the code like this: showNormal();//the qwidget slot function setAttribute(Qt::WA_TranslucentBackground); the dark part will appear. and if remove the showNormal() function ,then the tranlucent would work.so is it a bug or something else?
  • Mqtt

    Unsolved
    27
    0 Votes
    27 Posts
    6k Views
    SGaistS
    @kiru hi and welcome to devnet, It's seems to be working here at the time of writing. If it's still not, you can use the GitHub mirror.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Help in debugging QNetworkReply::ProtocolInvalidOperationError

    Solved
    3
    0 Votes
    3 Posts
    131 Views
    R
    No wonder, there was a formatting error in the form upload data -- mea culpa! Problem solved.
  • QtWebEngineCore.dll SOMETIMES not found

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    V
    I fixed the problem! :-) The trick is to disable the sandbox mode of the webengine. It looks like this problem was introduced since it was running remote on Windows Citrix. The only problem now is, that the resolution of print looks low. It looks like maybe 100 dpi even it looks fine on normal windows computers. Any idea how to fix that?
  • How to integrate QML UI into a custom Vulkan renderer without using a separate window

    Unsolved
    3
    1 Votes
    3 Posts
    223 Views
    S
    If you need some clarifications let me know
  • Qt creator autosave issue

    Unsolved
    4
    0 Votes
    4 Posts
    176 Views
    J.HilkJ
    @icebergenergy How did you add the files to your project — manually in Qt Creator, or did you rely on automatic folder parsing / globbing? Either way, if you delete a file via the file manager instead via QtCreator Project Manager, you'll have to rerun cmake.
  • QFileDialog name filter on Linux

    Unsolved
    7
    0 Votes
    7 Posts
    559 Views
    Christian EhrlicherC
    When the platform plugin provides a native file dialog then it is used, otherwise the Qt one is shown.