@J.Hilk said in How many emitted signals is too many?:
use the signal to tell the gui to call the getter and make that mutex locked
Yes! But I'd like to avoid the sync point for this. I liked @jeremy_k's suggestion above. When he uses producer:
QAtomicPointer<data> & m_mailbox;
m_mailbox.fetchAndStoreOrdered(next);
and consumer:
data *next = mailbox.fetchAndStoreOrdered(nullptr);
is that doing just the same behind the scenes as your explicit "call the getter and make that mutex locked"? Or is it a bit subtler than that?
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.
I have a row in a table and when I right-click on the row, a context menu should appear.
I can find the row in the table but have no clue how to bring up the context menu and select an item.
Some trial:
'obj' is the object representing the row
'common.Applications_Setup_ContextMenu' is the name of the menu as found during recording.
squish.nativeMouseClick( obj, button=RightButton )
squish.activateItem(squish.waitForObjectItem(common.Applications_Setup_ContextMenu, "Remove project"))
but it complains about 'RightButton'. I tried squish.RightButton, MouseButton.RightButton and various permutations of capitalization.....
I have 2 questions:
what is the right way to bring up the context menu?
where can I find definitions of constants like 'RightButton' ?
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.
[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
这是什么原因造成