Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.0k Posts
  • Preparing app for Microsoft Store (Qt 6 + CMake)

    Solved
    5
    1 Votes
    5 Posts
    1k Views
    J
    I was able to follow these instructions to package my app for initially Qt5 and now Qt6. See this blog post for details: https://nils.schimmelmann.us/2025-08-15-deploying-a-qt-app-to-the-microsoft-store-with-cpack-and-makeappx/
  • Loading data into QTableView from QAbstractTableModel

    Unsolved
    16
    0 Votes
    16 Posts
    534 Views
    S
    resetting the model is going to cause performance issues + the user is going to lose their selection and current cell/row/item What you want to do is to use the beginInsertRows and endInsertRows instead.
  • dark theme for Qt designer

    Solved
    12
    0 Votes
    12 Posts
    33k Views
    S
    I have the same problem. I literally can't look at that bright white screen without my eyes bleeding internally. I have a port of Qt5 style engine Kvantum [0] built for Windows and I know that the style .dll works since I'm able to use it in another application. But designer... I tried copying the kvantum.dll file to the same folder as the designer.exe, to the themes/ sub folder, to the themes/ subfolder in the Qt installation folder and then starting the .exe with '-style Kvantum' parameter and... NOTHING. NOT EVEN AN ERROR MESSAGE! (Special kind of incompetence here to completely ignore user input without any kind of acknowledge or error message or anything.) Would be nice to know how to start it with the style. AFAIK it's a Qt framework feature so designer should have it for free unless it was specifically amputated. And why use designer.. because it's a) more lightweight and to the point (when you just want to design widget .UI files) b) I have custom designer plugins and I'm not about to endure the massive suffering of porting them to creator (if its even possible...) So for the time being I'm stuck doing all the design work on Linux. [0] https://github.com/ensisoft/qt5-dark-theme
  • QSerialport

    Solved
    8
    0 Votes
    8 Posts
    233 Views
    JonBJ
    @Christian-Ehrlicher Trying to recall now. I did something about defining a macro to make the Release compile still call the debug malloc(), it is (was) something like malloc_dbg() and linked always with the debug malloc runtime. Then they were good working together, and I could still compile and run debugger with some "interesting" modules compiled for debug and "uninteresting" ones for release. And we (shared code) only had to compile all the "base" modules once for release only, when they changed, and could still use them with "high level" code code compiled for debug. Time to recompile was slow (large projects)!
  • windowsvista style causes hover animation to 'flicker' or 'jitter'

    Unsolved
    4
    0 Votes
    4 Posts
    180 Views
    T
    I can confirm that it still happens with Qt version 6.9.1.
  • Why is my QT application not working ?

    Locked Unsolved
    2
    0 Votes
    2 Posts
    132 Views
    Christian EhrlicherC
    You already asked it here and also got an answer: https://forum.qt.io/topic/162977/why-is-my-qt-application-not-working
  • How to make GridView with special zone , which would be free of delegates ?

    Unsolved
    5
    0 Votes
    5 Posts
    229 Views
    JonBJ
    @SGaist It's a "g" :)
  • Qml in Qdockwidget

    Unsolved
    8
    0 Votes
    8 Posts
    6k Views
    RokeJulianLockhartR
    Is there something similar to QDockWidgets in QML? @saitej, not to my knowledge. Per post/830426, stackoverflow.com/a/72717739's thread indicates that either one must utilise an external library, or reimplement it themselves.
  • QDockWidget and QML

    3
    0 Votes
    3 Posts
    5k Views
    RokeJulianLockhartR
    Could please anybody suggest something about how I can achieve the goal described above? Maybe someone has solved a similar issue? @ixSci, stackoverflow.com/a/72717739 might be of use. That is, unless I've misunderstood, in which case post/328061 might be more so.
  • How does Qt synthesize Mouse Events from Touch Events?

    Unsolved
    14
    0 Votes
    14 Posts
    5k Views
    K
    I am facing a similar issue with a QDialog. Touch clicks on pushbuttons does not work some times however the mouse clicks function properly. It is also tnoted that if the dialog window is resized by dragging the window edges the touch clicks are accepted. On catching the QEvent::TouchBegin it is seen that the position() returns the same QPointF as the screenPos() that is the event point is not translated into the widget co-ordinates. On printing the event position it was found that the touch
  • QtConcurrent::run errors with Qt6

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    J
    It looks like Qt6’s QtConcurrent::run no longer supports passing a raw pointer to a member function the way Qt5 did. You’ll need to use a lambda or std::bind to wrap the member function call. For example: ThreadAssembly.setFuture(QtConcurrent::run(= { this->Assembly(Frame, PreviousFrame, &RenderMusic, &ToEncodeMusic, Continue); })); This way, the function becomes a callable object compatible with Qt6’s QtConcurrent::run. It should fix the operator() / ArgResolver errors you’re seeing.
  • Can't understand how to work with QIntValidator

    Unsolved
    15
    0 Votes
    15 Posts
    2k Views
    JonBJ
    TBH I was pretty "unhappy" when I used Qt's int validator. I know they allow you to type the second 9 in 99 when the limit is 42 to do with because you could go back and delete a digit, or whatever its rule is. I can't put my finger on it, but I felt pretty sure that other validators I had used in software just wouldn't let you enter 99 for a limit of 42 in the first place rather than allowing it and then the user's input is illegal, and that seemed more intuitive to me in a UI....
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Error during manual generation with QDoc

    Unsolved
    1
    0 Votes
    1 Posts
    55 Views
    No one has replied
  • Impossible Generate Executable whit its dependecy

    Solved
    23
    0 Votes
    23 Posts
    2k Views
    A
    i'v redo all the install, and the things, it appeared it was missing a dll it didnot asked for (libwinpthread-1.dll) And after bumping my head against my keyboard doing weird things, i have now a standalone folder whit no source code. It can be moved where i want even on a virtual machine and it worked How to solve my issue and a small summary of what i'v done @jsulm said in Impossible Generate Executable whit its dependecy: After calling qmake you need to start the actual build @Pl45m4 said in Impossible Generate Executable whit its dependecy: Then you are looking for Qt Deployment to run it standalone @AntGP said in Impossible Generate Executable whit its dependecy: I'v tried to follow the tutorial, then to follow some youtube video ( https://www.youtube.com/watch?v=rFHPOZoqzcg) Some dll where missing @AntGP said in Impossible Generate Executable whit its dependecy: *it appear they where on mingw there is an error I'v redone everything from the start, no more error, just the application not launching, only making a small white square on the midle of the screen Then I bumped my head on my keyboard to copy past on the same tree shape (a bin folder whit all the other folder around on the same format as in the source tree) all the json, .conf, the images, the csv, xml and some library one by one until double clicking on the .exe do execute the application AND NOW IT WORK \o/ yay Thank you all for the help !
  • Tooltips appear in separate windows

    Unsolved
    7
    0 Votes
    7 Posts
    392 Views
    jsulmJ
    @pehg said in Tooltips appear in separate windows: I'll see if that corrects the problem when it arrives to my OS That will not happen before next Ubuntu version I guess. You can install this Qt version using Qt online installer.
  • 0 Votes
    4 Posts
    186 Views
    C
    @Diankewei If you have a problem, I suggest that you open your own thread and provide: A concise title The platform and Qt version you are on What you expected to happen What actually happened What you have tried A minimal piece of code to demonstrate how you reproduce the problem The OP provided none of these basic things. Qt Bluetooth in Qt 6 should find BT 5 devices if the underlying OS does. Bluetooth(classic) is not supported on iOS. Bluetooth LE devices are only partly supported on Windows.
  • Issue with WIndowStaysOnTopHint on Linux RHEL8 with X11 Display. Qt version 5.15.3.

    Unsolved
    4
    0 Votes
    4 Posts
    163 Views
    SGaistS
    Did you already check the Window Flags example ? Do you have the same issue if you play with the flags in that example ?
  • How to implement a "live" table, with sorting and filtering

    Unsolved
    3
    0 Votes
    3 Posts
    162 Views
    J
    @SGaist Thank you!
  • How to create a drop shadow effect in Qt Quick

    Unsolved
    1
    0 Votes
    1 Posts
    68 Views
    No one has replied