Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
84.1k Topics 460.5k 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
    56k 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.
  • QDateTime::currentDateTime timezone issue ?

    Unsolved
    1
    1 Votes
    1 Posts
    63 Views
    No one has replied
  • X11 Nvidia black window

    Unsolved
    1
    0 Votes
    1 Posts
    43 Views
    No one has replied
  • Change the base server url in OpenAPI gerenated code at runtime

    Unsolved
    1
    0 Votes
    1 Posts
    42 Views
    No one has replied
  • 0 Votes
    9 Posts
    9k Views
    J
    Too late to edit my previous message. Forget about point (2); it has nothing to do with point (1).
  • Is QtConcurrent suitable for this concurrent/parallel algorithm?

    Unsolved
    19
    0 Votes
    19 Posts
    2k Views
    JonBJ
    @SimonSchroeder Hmm, further complications. I went back to ChatGPT and carefully phrased what we are trying to do/asking about, where we think this case of a boolean and the way it is set/read means we do not need atomicity and can just use, say, a volatile shared variable. The gist of its answer is: In this situation std::atomic<bool> is required if you want the program to be correct according to the C++ memory model. The important distinction is between what the hardware happens to do and what C++ guarantees. In C++, a non-atomic object cannot safely be accessed concurrently this way. That's a data race, and a data race means undefined behaviour. It doesn't matter that: [...] volatile does not fix it. volatile is about observable memory accesses, primarily for things such as memory-mapped hardware; it isn't a thread-synchronisation mechanism. and concludes: But atomicity is still required for the read/write relationship. So the short answer is: Yes, atomic<bool> is required for a correct C++ program here. No, volatile bool is not a valid replacement. But you absolutely don't need to pay for an atomic load on every iteration — checking it periodically is a very reasonable optimisation for your algorithm. (It having suggested only calling done.load(std::memory_order_relaxed) once every so many iterations round the loop, just as you & I talked about. I have implemented that for every 256 iterations in each thread and that gives me acceptably similar timing now.) So I take that it while my non-atomic implementation may appear to work, or may work fine on my particular machine/architecture, it is at least theoretically not allowed ("Undefined Behaviour") under C++ at least. In a certain sense this is "reassuring"/"simple": instead of having to ponder whether a given "shared" variable and what we do with it (flag, counter, whatever) determines whether I need atomic or not, it seems I just need to use atomic whenever I have cross-thread read/writes.
  • How to take down padding from some cells in QTableWidget

    Solved
    8
    0 Votes
    8 Posts
    442 Views
    JonBJ
    @rida_zouga OK :) Now that you are using the color just for the background and filling first you can drop the alpha/opacity, e.g. QColor(255, 255, 0) should be pure yellow. Mine was just for illustration.
  • qt-everywhere-src-6.12.0

    Unsolved
    3
    0 Votes
    3 Posts
    234 Views
    I
    If you want the release candidate it is in the development releases area of the mirrors, e.g. https://download.qt.io/development_releases/6.12/6.12.0-rc/qt/single/
  • Qt 6.11: Can't compile for 'iphonesimulator'

    Unsolved qt 6.11 mac os 26 iphonesimulator
    2
    0 Votes
    2 Posts
    558 Views
    SGaistS
    Hi, I haven't since a long time but one thing to check: which version of Xcode do you have ?
  • QTabBar-like list of "x-clickable" buttons?

    Unsolved
    5
    0 Votes
    5 Posts
    744 Views
    JonBJ
    @IgKh said in QTabBar-like list of "x-clickable" buttons?: adding a tag is to type it and hit return Fair enough. I think different from what I took from the OP's description. At least I understand. (I get it now. Your "Tags Input" is those adding a bunch of tags to a topic by typing in words on little "cards", and "x" to delete one.)
  • 1 Votes
    12 Posts
    2k Views
    D
    Quick update: I finally found a workaround! Huge thanks to @SimonSchroeder for mentioning Live++. While I didn't adopt the tool itself, I looked into their recommended compilation flags to minimize PDB size. By applying specific flags in my build config files to reduce the number of linked sections, I managed to bring the section count back down. This completely stopped the address space exhaustion and the crashes during "Edit and Continue." The Trade-off: It increases the executable size slightly and, more importantly, disables exception handling (any throw/catch will now cause a crash). As long as we avoid try/catch blocks in these large files, it works perfectly. Problem solved! Thanks for the help everyone.
  • How to make OS with Qt (Operating System)

    Solved
    21
    0 Votes
    21 Posts
    6k Views
    Nils SjobergN
    @nicholas_ru said in How to make OS with Qt (Operating System): Lubuntu with Qt.Many distro with Qt.You may take Example this OS.I think you may joined in team. Were you talking to me?
  • Possible thread stack size problem on macOS with deep recursion

    Unsolved
    6
    0 Votes
    6 Posts
    391 Views
    S
    On the one hand you are saying that you have restricted the recursion depth to 14 levels, but on the other hand you are saying you have a stack overflow. This does not make sense unless you have really huge stack frames (any arrays on the stack?). Or your actual recursion depths is much deeper than 14 levels. It is quite likely that the stack overflow is the real problem and malloc doesn't have to do anything with it. For now, I would stop looking elsewhere. Setting a larger stack size certainly seems to help. Somebody mentioned that Linux stack size is 8MB, so you could even just go with 8MB (instead of 16MB) if your software works on Linux. However, this is not a permanent fix! Over time people will run larger and larger problems. You'll eventually run out of stack space on all operating systems, not just macOS. The best solution might be to rewrite your recursive algorithm with a loop. (This is technically also not a permanent solution, but the only restriction is not enough RAM and there is nothing you can do about it in software.)
  • Qt 6.12 build from source

    Unsolved
    3
    0 Votes
    3 Posts
    451 Views
    N
    I am decide not compile qt from source. In Debian 13 fresh 6.8.2 and Qt Creator 16.0.1.If you want most fresh install Qt Install framework.
  • 0 Votes
    5 Posts
    383 Views
    SGaistS
    @Aidener I merged your answer with the original thread. Please keep things together.
  • This topic is deleted!

    Unsolved
    0
    0 Votes
    0 Posts
    48 Views
    No one has replied
  • Dragging a frameless window across mixed DPI monitors

    Unsolved
    3
    0 Votes
    3 Posts
    299 Views
    V
    @Christian-Ehrlicher Thanks, I will check that out
  • Has the minimum CPU requirement for Qt 6.10 Linux x86_64 binaries changed to x86-64-v2?

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    I
    The news about CERN switching some of their systems from RHEL to Debian due to exactly this reason is not uninteresting in this context.
  • missing font family

    Unsolved
    4
    0 Votes
    4 Posts
    762 Views
    JuniorMLedesmaJ
    Hi, does it still reports a warnning?
  • Modern App Packaging

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    S
    @sales99 said in Modern App Packaging: mani mani, but apps dont deploy, waste of time So, what do you think windeployqt, linuxdeployqt, and macdeployqt are doing?