One question about SIGNAL



  • Hi
    I see this code but i have a question about that

    QNetworkReply *reply = manager->get(request);
    connect(reply, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));
    

    whats mean slotReadyRead() ? slotReadyRead not member any class !



  • http://doc.qt.io/qt-5/signalsandslots.html

    In your case slotReadyRead must be a public or private slot in the class pointed by this for example:

    private slots:
    void slotReadyRead(){
    //do something
    }
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.