socketThread is instantiated from main.cpp, I guess it would be easier if it was instantiated in mainwindow.cpp instead. No more errors on this.
But I have a question on how should I pass the string into my socket slot function? I tried
string_in = send();
string_in = send();
To copy to clipboard, switch view to plain text mode
but results in an argument not being provided.
Currently this is what I have
socketthread.cpp
void SocketThread::run()
{
...connect....
.................
while(1){
string string_in = ""; // I would like to pass the string into string_in
....
.......
}
exec();
}
void SocketThread::run()
{
...connect....
.................
while(1){
string string_in = ""; // I would like to pass the string into string_in
....
.......
}
exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks