Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.9k Posts
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    3 Votes
    29 Posts
    34k 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.
  • ICU library mismatch in multiple Qt versions

    Unsolved
    3
    0 Votes
    3 Posts
    29 Views
    C
    It is a warning, not an error, unless you fail to ship the matching libraries with your application (then you have a different error). The Qt versions installed by the online installers come with a matching set of ICU libraries. Is it actually causing any harm?
  • issue with nested qtabwidget with qvector<qtableview*> on the inner table

    Unsolved
    6
    0 Votes
    6 Posts
    51 Views
    Axel SpoerlA
    As @SGaist said, can you run this in the debugger and inspect the call stack, when the crash happens?
  • Passing references in signals and slots

    Solved
    5
    0 Votes
    5 Posts
    78 Views
    P
    If the object itself isn't const, but I pass it as a const reference through signals and slots, I guess that still works? As long as the signals and slots are declared with const&
  • 0 Votes
    1 Posts
    24 Views
    No one has replied
  • How to use Qt for a GUI inside an existing game engine?

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    E
    Hi, integrating Qt into an existing game engine is definitely possible, but it requires some planning. QML is usually a better choice than Widgets since it handles animations and modern UI elements more smoothly. You can forward your engine’s mouse and input data into Qt’s event system to manage clicks and positions. For frame synchronization, many developers render the Qt interface offscreen and then copy it into a texture inside their engine. This way, you keep everything in sync without relying on separate windows. A good example of how engaging UI enhances gameplay can be seen in the temple game, where simple mechanics and smooth design keep players hooked. Hope this helps and points you in the right direction.
  • read binary data from QDataStream with feedback

    Unsolved
    4
    0 Votes
    4 Posts
    32 Views
    Christian EhrlicherC
    @DungeonLords said in read binary data from QDataStream with feedback: But how to now it happen? QDS::commitTransaction() will return false and QDataStream::status() will tell you why.
  • How to set a GraphicPipline with multiple QRhiShaderResourceBindings sets?

    Unsolved qrhi shader vulkan
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • 0 Votes
    16 Posts
    887 Views
    K
    @SGaist Sorry about that 🙂. To be honest, I was busy with another project, so I wasn’t fully focused, and since this wasn’t my main target, I overlooked the instructions. 🙏 Now it’s clear to me, and I managed to build successfully. Thanks again for pointing me in the right direction!
  • Macros in QRhi shaders?

    Solved
    2
    0 Votes
    2 Posts
    21 Views
    H
    As usual, after asking the question, I found the answer myself. The key is to passPERTARGETCOMPILE to qt6_add_shaders.
  • Delayed Window State Read after Hide Gives Wrong Results Even in X11

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    J
    Marking as solved. The solution was to cache the state before hide and restore when shown. I mean the setter docs (https://doc.qt.io/qt-6/qwidget.html#setWindowState) said any sets to window state will apply after show... not sure what is going on here.
  • Why Does Minimization Immediately after Show and Activation Cause Non-Minimization?

    Solved
    8
    1 Votes
    8 Posts
    2k Views
    J
    @Kent-Dorfman Alright, reasonable! Guess I'll just need to be careful with my logic to not have any such things operate in my PySide6 app instead of ranting about it here. Marking as solved since there's no reliable way to hook into finish activation.
  • QLineEdit does not clear its `text()` after the clear button is clicked

    Solved
    10
    0 Votes
    10 Posts
    757 Views
    JonBJ
    @IgKh said in QLineEdit does not clear its &#x60;text()&#x60; after the clear button is clicked: Few notes on that - the first is that it won't work that way. QObject::sender() isn't magic, and has no way of knowing that you called it from a function that is not directly the slot. The second is that you never know who the actual sending object is, and can't assume that it is the QLineEdit directly (and not a sub-object of it, or something else entirely). @Robert-Hairgrove said in QLineEdit does not clear its &#x60;text()&#x60; after the clear button is clicked: Another idea would be to check the value returned by sender() in the handleEditingFinished() slot. If it is empty, or not from the QLineEdit widget, then it must be from calling it directly from the other slot. Set the connect() on editingFinished to call a lambda, passing on ui->edtInput explicitly to your slot rather than trying to use sender().
  • How to refuse that user select item by Mouse drag?

    Solved
    5
    0 Votes
    5 Posts
    215 Views
    S
    I guess you need to set the selection mode: https://doc.qt.io/qt-6/qabstractitemview.html#SelectionMode-enum Pick one that works for you.
  • QtWebEngineWidgets not showing checkboxes properly

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    T
    Cross compilation from Linux of any sort -- even using wine-msvc -- is not supported for QtWebEngine. You have to natively compile on Windows using MS Visual Studio toolset.
  • prevent cursor from redrawing

    Unsolved
    5
    0 Votes
    5 Posts
    611 Views
    A
    OK, THIS IS INCREDIBLY FRUSTRATING! I tried to post just the contents of the header file between code tags. It contains three small class declarations, about 30 lines of code. I hit the submit button and immediately received a message that I had to wait 600 seconds. After patiently waiting for 10 minutes and hitting submit again, aargh ...... "Code content was flagged as spam by Akismet"! So I have no idea how this forum works or if it even does, it seems to me to be pointless having a programming forum that can't even accept the most basic bit of code. `
  • Calling ffmpeg with QProcess: crashes

    Moved Solved
    3
    0 Votes
    3 Posts
    565 Views
    U
    @Christian-Ehrlicher oh, silly me, how I couldn't see it. It worked out. sorry for this thread.
  • QFrame overlay window moving with its parent

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    W
    @hskoglund Thanks, that explains it. I googled a bit, and decided to take the moveEvent() route -- not a big fan of hacky solutions.
  • When was QIODeviceBase introduced?

    Solved
    4
    0 Votes
    4 Posts
    995 Views
    I
    @Robert-Hairgrove The easiest way is through git. The Github mirror at https://github.com/qt/qtbase/ has the entire open source history of Qt 5 and 6 core modules - use the branch selector. The are also all the released source archives of those as well of Qt 4 and Qt 3 releases in the downloads server.
  • RHI and push constants

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, This is a question you should bring to the development mailing list. You'll find there Qt developers/maintainers. This forum is more user oriented. You might also want to check the bug report system as there might already be something there.