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.12 LTS 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.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    34 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    24 Views
    No one has replied
  • VST audio plugin using Qt Creator with QML for the UI

    Unsolved plugins vst
    2
    0 Votes
    2 Posts
    67 Views
    JoeCFDJ
    @Simmania Not sure if VST audio plugin is good or not. Have you tried it? libVLC might be another choice. Check it out. We coded audio/video pipelines with raw gstreamer code and can have more controls over them. A lot of work is needed. FFmpeg is very good as well nowadays. But it could be much simpler with the help of AI tools.
  • Change the base server url in OpenAPI generated code at runtime

    Unsolved
    3
    0 Votes
    3 Posts
    323 Views
    SGaistS
    @Chubinou hi and welcome to devnet, Do you have a known set of servers or just "anywhere is possible" ?
  • QTabBar-like list of "x-clickable" buttons?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    Pl45m4P
    @Nathaniel Are you thinking about something like this? [image: 4a8e41cd-0d50-468c-a032-6949ec4d33ff.png] This is used as tags / filters for the forum search function. You can make your own widget or delegate quite easily. I would start with QWidget, and then add a label and a button to it.
  • QDateTime::currentDateTime timezone issue ?

    Solved
    8
    1 Votes
    8 Posts
    452 Views
    JonBJ
    @f222 Glad I could help :) Don't understand the issue in your second paragraph so i will leave that with you. It was a guess about TZ. That is a normal environment variable under Linux (which I use) but not so much under Windows. There it gets complicated: it may depend on the compiler code you use (MinGW vs MSVC). I believe it is also used automatically by the C runtime code you link/dynamically load (DLLs) against. How that in turn relates to C++ runtime code I don't know. And I suspect Windows calls do not use it, only C/C++; and then I don't know which Qt calls' implementations use C/C++ functions versus Windows-SDK ones, and maybe a mixture (e.g. your time calculation calls use the C/C++ TZ variable but your name-of-timezone uses a Windows call?). And for all I know Qt's internal code may have changed in that area between your old-working Qt5 and new-non-working Qt6. It's all perhaps a minefield, suck it and see :)
  • X11 Nvidia black window

    Unsolved
    1
    0 Votes
    1 Posts
    113 Views
    No one has replied
  • 0 Votes
    9 Posts
    10k 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
    575 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
    320 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
    1k Views
    SGaistS
    Hi, I haven't since a long time but one thing to check: which version of Xcode do you have ?
  • 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
    7k 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
    441 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
    482 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
    417 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