PDA

View Full Version : Problem binding C++ Signal to Qt5 QML Slot in main.qml from another class



timothyojo
9th August 2017, 14:10
Hello All,

I am very new to Qt/C++ and am working on a program that receives data from a QTcpSocket in c++ and pass it to a list model in QQuickWindow (main.qml).

1. It seems i can do that from main where the window is available (Not Sure).
2. How do i get the QQuickWindow to the socket class, where i can use Signal from c++ to bind the data to Slot in main.qml.

Thanks