Skip to content
Snippets Groups Projects
Commit 61425c21 authored by bodzsoaa's avatar bodzsoaa
Browse files

Use QGuiApplication

parent 84275031
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,5 @@ find_package( ...@@ -13,9 +13,5 @@ find_package(
COMPONENTS WebChannel WebSockets Widgets COMPONENTS WebChannel WebSockets Widgets
REQUIRED) REQUIRED)
target_link_libraries( target_link_libraries(
libmueb-webchannel PRIVATE Qt5::Core Qt5::Gui Qt5::Widgets Qt5::WebChannel libmueb-webchannel PRIVATE Qt5::Core Qt5::Gui Qt5::WebChannel
Qt5::WebSockets mueb) Qt5::WebSockets mueb)
target_link_libraries(
muebwebchannel
PUBLIC Qt5::Core Qt5::Gui
PRIVATE Qt5::WebChannel Qt5::WebSockets mueb)
#include <QApplication> #include <QGuiApplication>
#include <QWebChannel> #include <QWebChannel>
#include <QWebSocketServer> #include <QWebSocketServer>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "shared/websockettransport.h" #include "shared/websockettransport.h"
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
QApplication a(argc, argv); QGuiApplication a(argc, argv);
// setup the QWebSocketServer // setup the QWebSocketServer
QWebSocketServer server(QStringLiteral("QWebChannel libmueb Server"), QWebSocketServer server(QStringLiteral("QWebChannel libmueb Server"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment