Qt 6.12 LTS is out! See what's new in the release
blog
Sender() in invoked slot
General and Desktop
2
Posts
2
Posters
990
Views
1
Watching
-
Tried use sender() in normal slot but called using invokeMethod(). Suddenly got 0 pointer... Is that normal behavior? So why? The same signal-slot engine used as after connection. I did not find any info not in docs nor in Web.
-
Hi,
You can find the explanation "here":http://doc.qt.io/qt-5/qobject.html#sender . If the slot is not activated by a signal it will return 0