You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing with this for too long.
Why can't I start the QHttpServer outside the main? Such as in a class?
I've tried passing in the app variable to the class too and no go.
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
MyClass *pClass = new MyClass();
pClass->startHttpServer(&app);
...
}
What is happening here?
The text was updated successfully, but these errors were encountered:
Do you have find a solution? I'm facing the same issue too. The server seems to listen (i.e. isListening == true) but it doesn't actually answer to incoming connections.
I've been playing with this for too long.
Why can't I start the QHttpServer outside the main? Such as in a class?
I've tried passing in the app variable to the class too and no go.
What is happening here?
The text was updated successfully, but these errors were encountered: