Skip to content
  • 144k Topics
    721k Posts
    M
    Hello, I've just started learning QT recently for a school project and I am unsure about something. This is what I have right now, but it is written in an unmaintainable and ugly way. [image: 7fbf2fa6-a1fb-43a9-a1ce-fd14c9f23236.png] For each widget in the grid layout, i want to show three things, tile texture : static and a character texture and healthbar (character is image, healthbar currently im using a qwidget with a linear gradient stylesheet, but that's not a good solution, both change place on every turn). I am not asking how to handle the changes, but how to actually draw them on the QWidget. Is the best solution creating three QLabels, setting a pixmap to each, and setting QTile as their parent? I have tried using QPainter but it seems that for that I have to change the paintEvent function? I am not looking for the actual code but just directions. Thanks
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    jeremy_kJ
    Whether the implementation is "lock-" or "wait-free" depends on the processor and C++ standard library implementation. https://doc.qt.io/qt-6/qatomicpointer.html#feature-tests-for-the-atomic-api An operation that completes in constant time is said to be wait-free. Such operations are not implemented using locks or loops of any kind. https://en.cppreference.com/w/cpp/atomic/atomic_is_lock_free.html All atomic types except for std::atomic_flag may be implemented using mutexes or other locking operations, rather than using the lock-free atomic CPU instructions. Atomic types are also allowed to be sometimes lock-free: for example, Use the macros and is*WaitFree() functions documented for QAtomicPointer It's also worth looking at the Qt and C++ memory ordering semantics documentation. *Ordered() is the most conservative approach. Imposing ordering limits the optimizations that a compiler and CPU can apply. The use of atomics also impacts memory cache coherency, potentially causing neighboring non-atomic data to be flushed.
  • Everything related to designing and design tools

    130 396
    130 Topics
    396 Posts
    J
    Using QT Designer might be the simpler route if the main goal is to keep the workflow smooth with Python. QT Design Studio projects often need manual adjustments before they run properly under PySide6.
  • Everything related to the QA Tools

    90 244
    90 Topics
    244 Posts
    MRosiekM
    @PR04 You can check in SquishIDE if object Exists with given set of properties. Frist you need to start AUT/connect to it, open Scripted Object Map and select your symbolic name (1. - on the screenshot) Later you press Check Existence (2. - on the screenshot) It will tell you if your list of properties in real name are OK and object can be found. Check out this screenshot from my SquishIDE: [image: 72637c04-cada-4bae-89ee-7fea5c28ee5e.png]
  • Everything related to learning Qt.

    391 2k
    391 Topics
    2k Posts
    S
    @Jackol Did you or did an AI write that answer?
  • 2k Topics
    13k Posts
    Chris KawaC
    Sometimes, like when you are marooned on a desert island [in an announcer voice] Coming soon, to a desert island near you... :) Yeah, I guess cases where all you have is text search on a big code base are not that uncommon, like when browsing github repo or something like that, but specifically overrides... I don't think I ever had to look for overrides this way. Oh well, different people different use cases.
  • 4k Topics
    18k Posts
    C
    [image: dc2880e7-0937-4483-91de-5cc6b1e0664b.png] 项目升级QT6后启动 ASSERT failure in class QFactoryLoader *__cdecl QtGlobalStatic::ApplicationHolder<struct `anonymous namespace'::Q_QAS_qtlsbLoader>::pointer(void) noexcept(false): "The application static was used without a QCoreApplication instance", file C:/Users/qt/work/qt/qtbase/src/corelib/kernel/qapplicationstatic.h, line 59 这是什么原因造成
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    O
    Many thanks @SGaist, issue solved I connected today to both account (Jira and Qt) and the click on "erstellen" opens the ticket creation mask now. I don't understand what happened yesterday, since i didn't do anything different today in comparison to yesterday... Maybe the night time helped for some background synchronization...