What I was trying to hit at is that you need to create an instance of QTimer if you want to use it
Right now you are using an uninitialized pointer.
Cheers,
_
What I was trying to hit at is that you need to create an instance of QTimer if you want to use it
Right now you are using an uninitialized pointer.
Cheers,
_
Thanks!!!! I can send and receive!!!
Now I have the next problem, but why I can't do this?Qt Code:
ui->label_2->setText(datagram.at(i).toString());To copy to clipboard, switch view to plain text mode
Build:
Request for member 'toString' in 'datagram.QByteArray::at(i), which is of non-class type char
ui->label_2->setText(datagram.at(i).toString());
Thanks another time!!
Last edited by ariad; 18th September 2014 at 15:36.
QByteArray::at() returns a char, a single character. It is not a class and does not have any methods.
If you want to display the string inside the byte array, use one of the QString::fromXYZ methods, e.g. QString::fromAscii()
Cheers,
_
Ok, thanks!!!
Bookmarks