Hi,
I am working on a project another student has written.
I don't like the way he handled reading from the SerialPort:

Qt Code:
  1. settings->RS485port.write(dataToSend);
  2. if(settings->RS485port.waitForReadyRead(1)){
  3. QByteArray temp = settings->RS485port.readAll();
  4.  
  5. for(int charCount = 0; charCount < temp.count(); charCount++){
  6. ...... //handling the response
  7. }
  8. byteReceived = true;
  9. }
  10. }
To copy to clipboard, switch view to plain text mode 

waitForReadyRead let the GUI freeze and that's definitely not what i want to happen. So i read about connecting the readyRead Signal with a Slot.

Qt Code:
  1. connect(settings->RS485port, SIGNAL(readyRead()), this, SLOT(handlePortReadyRead()));
To copy to clipboard, switch view to plain text mode 

If I try to compile this, it says:
C:\Users\...\bootloaderdialog.cpp:207: Fehler: no matching function for call to 'BootloaderDialog::connect(QSerialPort&, const char [13], BootloaderDialog* const, const char [23])'
connect(settings->RS485port, SIGNAL(readyRead()), this, SLOT(handlePortReadyRead()));
Do you know why i can't connect the Signal to the Slot. Or do you know any better way to read Data from a Serialport?