Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.9k Topics 459.4k Posts
Qt 6.11 is out! See what's new in the release blog
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    4 Votes
    29 Posts
    38k 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.
  • Spin box and slider tracking

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • A question about QNetworkReply::deleteLater() usage

    Unsolved
    9
    0 Votes
    9 Posts
    225 Views
    W
    @free online games said in A question about QNetworkReply::deleteLater() usage: Maybe help your question DataReceiver::DataReceiver(QObject *parent) : QObject(parent) { _manager.setAutoDeleteReplies(true); } void DataReceiver::take() { _buffer.clear(); QNetworkRequest request(url); _reply= _manager.get(request); connect(_reply, &QNetworkReply::readyRead, this, &DataReceiver::onReadyRead); connect(_reply, &QNetworkReply::finished, this, &DataReceiver::onFinished); } void DataReceiver::onReadyRead() { _buffer += _reply->readAll(); } void DataReceiver::onFinished() { _reply->deleteLater(); emit somesignal(_buffer); } Thank you so much!
  • Address sanitizer with Qt6

    Unsolved
    12
    0 Votes
    12 Posts
    240 Views
    J
    Turns out that last fix didn't fix everything. Still getting the same error, but this time from qobject.h. Can't modify that. inline QObject *parent() const { return d_ptr->parent; }
  • QQuickFramebufferObject doesn't report input events

    Unsolved
    3
    0 Votes
    3 Posts
    78 Views
    K
    I made a repro repository here: https://gitlab.com/kaixoo12/QmlSampleRepro
  • QtGraphs: GraphsView shifted when plotting more than one LineSeries

    Solved
    2
    0 Votes
    2 Posts
    65 Views
    M
    OK, so looking at the hellographs example, it looks like for more than one Series per GraphsView, axisX and axisY have to be defined in the GraphsView, and not in the Series. If anyone from Qt is reading this, can you please, please update the docs in https://doc.qt.io/qt-6/qml-qtgraphs-scatterseries.html which do not describe this correctly. Thanks, Markus
  • Qwt Spectrogram drawing problem

    Unsolved qwt spectogram waterfall chart spectrum
    2
    0 Votes
    2 Posts
    77 Views
    SGaistS
    Hi, Can you share a minimal buildable example that reproduce what you get ?
  • Black screen with QOpenGLWidget while docking

    Unsolved
    4
    0 Votes
    4 Posts
    123 Views
    Joe von HabsburgJ
    @aabb2137 said in Black screen with QOpenGLWidget while docking: Maybe creating it at the start of the program and then hiding it could be a workaround. //Mainwindow constr auto *dummyGL = new QOpenGLWidget(this); dummyGL->show(); dummyGL->hide(); This solved my flashing problem, but is it correct solution ?
  • 0 Votes
    3 Posts
    265 Views
    J
    ever figure out a solution?
  • windows 11 Qt Designer promoted QComboBox to _QComboBox_ and ...

    Unsolved
    2
    0 Votes
    2 Posts
    126 Views
    SGaistS
    Hi, That import looks fishy. Do you have your own file named qcombobox ?
  • Weird Application Output

    Unsolved
    4
    0 Votes
    4 Posts
    444 Views
    D
    @WOLKsite I was having the same issue, found out it was due to the "ON SCREEN CONTROL" app that I installed for my monitor, so you may want to check any software or drivers you may have installled.
  • QWebEngineView and http headers (specifically "referer" header)

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    S
    @Joe-von-Habsburg thanks for the idea. However, I want to distribute this particular application and I want it to be as independent of other sources as possible. Using openstreet maps was acceptable. Using them plus an aditional server is too much. As mentioned befor, I prefer to draw a map myself using a QGraphicsScene because the map does not have to be very detailed.
  • Pixel perfect drawing with QCanvasPainter - is it possible on scaled desktop?

    Unsolved
    4
    1 Votes
    4 Posts
    199 Views
    GrecKoG
    Looks like a bug you can report on https://qt-project.atlassian.net
  • Good practices for memory gestion

    Unsolved c++
    2
    0 Votes
    2 Posts
    129 Views
    SGaistS
    Hi, Without having dived in your source code, I think one key difference to take into account: Python is garbage collected while C++ is not. Also, deleting an object in C++ does not mean that the memory is immediately released to the OS. It may happen at different times depending on your application memory usage pattern, OS etc.
  • Windows compilation problem

    Unsolved
    9
    1 Votes
    9 Posts
    520 Views
    P
    @Christian-Ehrlicher: If " ->" means "and up", that's unusual, and it means 6.11.0 would contain both mingw-builds x86_64-11.2.0-release-posix-seh-rt_v9-rev3 and mingw-builds 13.1.0-202407240918mingw1310. In any case, unless you are saying that one of these contains MinGW 13, I do not see your point.
  • MariaDB / QMySqlDriver connection without SSL got 2026 error

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    goldenhawkingG
    @Christian-Ehrlicher Got it. Quick sidebar: Let’s be real—MySQL just hasn’t had PostgreSQL’s cultural mindshare these past few years in the tech ecosystem.
  • Trying to configure qtbase on macOS-26.3

    Solved
    7
    0 Votes
    7 Posts
    310 Views
    jsulmJ
    @gav451 You can mark it as solved then
  • Getting QSqlError "Driver not loaded"

    Solved
    11
    0 Votes
    11 Posts
    367 Views
    D
    @Christian-Ehrlicher said in Getting QSqlError "Driver not loaded": @DiBosco said in Getting QSqlError "Driver not loaded": just the mariadb libs. Even this is not needed - you only need to compile the Qt sql plugin. The rest is already available as binary. Yep, that's all I did. Sounds like I described it poorly. Am still intruiged as to why this has to be done on Windows, but not on Linux (or at least my Linux distro).
  • Can QDir filter by filename length ?

    Solved
    3
    0 Votes
    3 Posts
    100 Views
    S
    You could use QDir::setNameFilters (https://doc.qt.io/qt-6/qdir.html#setNameFilters). The documentation mentions that you can use * and ? wildcards. If you don't know this: ? filters exactly one character. So, to filter for a specific length, just use that number of question marks as name filter.
  • Running application with user privillegions.

    Unsolved
    24
    0 Votes
    24 Posts
    1k Views
    S
    There is a reason why you can't just run anything with root privileges. And under normal circumstance you should not try to circumvent it. The most important question is if you really need to run something as root (while your own software is not started with root privileges). Qt does not provide anything special to run a process as root. You need to use OS functionality to run an elevated process (you can use QProcess to start sudo or use any of the other methods mentioned before). In the case of sudo it is up to you to ask the user for the password and hand it to sudo. But, even this is a bad idea because it is really easy to leak the password for an attacker.