[Interest] Help, I'm in QML signal hell
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Fri Nov 1 17:45:39 CET 2019
Il 01/11/19 17:42, Jason H ha scritto:
> I am using signals/slots in QML and the signal emissions are getting inverted.
>
> Here's my example:
> bool Socket::emitSignalForOp(const QByteArray &) "STF10" 10
> bool Socket::emitSignalForOp(const QByteArray &) "PSF09" 11
>
> STF10 necessarily comes after PSF09. In wall-clock time it does. But Qt is not getting the order right. The number above is the signal emission number, so it's not a display issue.
You need to share more about your code.
Just a word of caution: if we're talking about multithreaded code, "wall
clock time" does simply not exist. Threads are relativistic...
My 2 c,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191101/979d215c/attachment.bin>
More information about the Interest
mailing list