Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Combobox Text Color

    Unsolved
    1
    0 Votes
    1 Posts
    189 Views
    No one has replied
  • How to pass QNetworkReply‘s data without copying it into memory

    Solved
    12
    0 Votes
    12 Posts
    613 Views
    jsulmJ
    @Creaperdown said in How to pass QNetworkReply‘s data without copying it into memory: file that QNetworkReply There is no file. The incoming data is put into a buffer from which you then read it. Ideally you simply connect a slot to https://doc.qt.io/qt-6/qiodevice.html#readyRead of your QNetworkReply and read the data every time this slot is called.
  • Qt creator for non qt existing project, include paths

    Unsolved
    1
    0 Votes
    1 Posts
    169 Views
    No one has replied
  • QML How to free memory?

    Unsolved
    1
    0 Votes
    1 Posts
    100 Views
    No one has replied
  • Qt6.5 QML Layout not working well in Linux

    Unsolved
    2
    0 Votes
    2 Posts
    196 Views
    A
    Maybe related to https://bugreports.qt.io/browse/QTBUG-93631?
  • QSG - Using sRGB ICC profile instead of system ICC profile?

    Unsolved
    1
    0 Votes
    1 Posts
    286 Views
    No one has replied
  • What is a good QT C++ test or challenge for a QT newbie?

    Unsolved beginner challenge
    15
    0 Votes
    15 Posts
    2k Views
    C
    @sporefan perhaps make your pure C++ projects again but with Qt this time, you already have those ideas which should be quite advanced (considering your own estimation of your C++ skills), and even better, see if Qt offers a way to make them better, or add more features to them, don't start fresh, build from what you already made with pure C++.
  • How to specify which screen a app "opens" on

    Unsolved
    2
    0 Votes
    2 Posts
    193 Views
    W
    @bigguiness Basically, get a QScreen, and then call setScreen on the widget you want moved to that screen: https://doc.qt.io/qt-6/qwidget.html#setScreen You probably want to do it before the widget is shown.
  • White screen issue on Qt application in MAC os

    Unsolved macos11 localhost
    4
    0 Votes
    4 Posts
    687 Views
    SGaistS
    What was the issue ?
  • QNetwork problems with SSL, any fix or alternatives?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    I am suggesting that you install the Qt development packages from your distribution and use that version of Qt to build your application. You don't have to build anything (beside your application).
  • program stops at "QAüülication a(argc, *argv[])

    Unsolved
    8
    0 Votes
    8 Posts
    545 Views
    R
    Hi all and thanks a lot! After, again, installing from scratch Debian and the QtCreator it seems to run :-) No idea why but, at least, the pure widget program skeleton (Create Project) runs and shows the empty window :-) Thanks again!
  • QT USB support

    Unsolved usb qt
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    Hi, @astoffregen said in QT USB support: @Christian-Ehrlicher An usb stick This likely means a storage device but a USB stick can be: Storage Bluetooth dongle WiFi dongle Serial port etc. Depending on your exact needs, KDE's Solid framework might be of interest.
  • Most responsive data graphing implementation

    Unsolved
    2
    0 Votes
    2 Posts
    234 Views
    _
    @_bmb For anyone's reference, I've found a good solution is to not use QPainterPath at all, and simply store a QList of QLines (about 30,000 of them for my data), and draw them using QPainter. I put pointers to these lists in a vector, so I can keep track of multiple data sets on the graph if I want. In order to check for mouse hover events over my data, I create a tiny diagonal line at the current mouse position, iterate through the entire list of 30,000 lines and check each for intersections. Surprisingly, this is a very fast operation and I'm noticing zero lag, even with multiple data sets on the graph. The benefit of using QLines is that you can return the actual intersection location, which QPainterPath intersections are apparently not capable of.
  • Clipping of (OR maybe background colour of) QToolbar Icons

    Solved
    15
    0 Votes
    15 Posts
    845 Views
    JonBJ
    @Perdrix said in Clipping of (OR maybe background colour of) QToolbar Icons: Why did adding border:none; fix it please? QSS magic/guess/example/makes sense to remove anything not needed.
  • Why is QT Creator is so hard to learn

    Unsolved
    3
    0 Votes
    3 Posts
    480 Views
    D
    @Bhavith-C You can use Visual Studio Code, Visual Studio or CLion if you find Qt Creator shitty. There are alternatives, but for some of them you may have to pay...
  • This topic is deleted!

    Unsolved
    14
    0 Votes
    14 Posts
    97 Views
  • How to achieve multiple tooltip on QGraphicsItem ?

    Unsolved
    3
    0 Votes
    3 Posts
    292 Views
    T
    @mrjj Thanks. Your suggestion worked.
  • update text edit at run time.

    Solved
    27
    0 Votes
    27 Posts
    3k Views
    JonBJ
    @mbatra Exactly as @jsulm has written. If the file to be monitored does not yet exist you cannot place a QFileSystemWatcher on it. You have to watch the directory first to see file creation via directoryChanged(). Only once it has been created can you then start to monitor the file for fileChanged(), so a two-step process for your case.
  • Calling QGraphicsItem::update() does not paint

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    S
    @JonB Minimal project as you requested github I have to say that this works :D But then I managed to make it not work again, ViewportUpdateMode set to NoViewportUpdate QGraphicsView will never update its viewport when the scene changes; the user is expected to control all updates. This mode disables all (potentially slow) item visibility testing in QGraphicsView, and is suitable for scenes that either require a fixed frame rate, or where the viewport is otherwise updated externally. That surprised me because descriptions says that the user is expected to control all updates, so I thought that calling a QGraphicsItem::update() will propagate this to a scene() but I guess not. Well this thread can be closed then, hope someone in the future will not waste 2 days trying to fix it
  • Sizing problems in 6.5.0

    Solved
    7
    0 Votes
    7 Posts
    624 Views
    PerdrixP
    I've reported this as a bug: https://bugreports.qt.io/browse/QTBUG-112654 and closed it as Invalid! A minimum size was set slightly low ...