[Interest] QML Signal to C++ Slot with QVariant is not working with Qt5.3

Railway Coder railwaycoder at gmail.com
Tue Jun 24 21:46:20 CEST 2014


Hello together,

are there some changes between Qt5.2 and Qt5.3 regarding to signal and
slots behaviour?

I've tried to switch to Qt5.3 but my Signals and Slots with QVariant are not
working between QML and C++.

I've written a small example that is working fine with Qt5.2 but not with
Qt5.3.
I get the following error during start-up of the application compiled with
Qt5.3:

 QObject::connect: No such signal
QQuickWindowQmlImpl_QML_0::qmlSignal(QVariant) in
../qml_cpp_signal_slots/main.cpp:20


<../qml_cpp_signal_slots/main.cpp:20>
Please see the attatched sources.
Any ideas?

Thanks and Best Regards,
railwaycoder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/6550907b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 485 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/6550907b/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.qml
Type: text/x-qml
Size: 397 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/6550907b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myclass.cpp
Type: text/x-c++src
Size: 82 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/6550907b/attachment-0001.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myclass.h
Type: text/x-chdr
Size: 502 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/6550907b/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qml.qrc
Type: application/octet-stream
Size: 87 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/6550907b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qml_cpp_signal_slots.pro
Type: application/octet-stream
Size: 277 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/6550907b/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deployment.pri
Type: application/octet-stream
Size: 574 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/6550907b/attachment-0002.obj>


More information about the Interest mailing list