Commit a6fa076c authored by Soheil Armin's avatar Soheil Armin
Browse files

Widgets required for FileDialog

On systems without native file dialog
parent 91d971dd
......@@ -7,6 +7,7 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 6.2 COMPONENTS Quick REQUIRED)
find_package(Qt6 COMPONENTS Widgets REQUIRED)
qt_add_executable(appUnixsocketPlayground2
main.cpp
......@@ -38,4 +39,5 @@ set_target_properties(appUnixsocketPlayground2 PROPERTIES
target_compile_definitions(appUnixsocketPlayground2
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(appUnixsocketPlayground2
PRIVATE Qt6::Widgets
PRIVATE Qt6::Quick)
#include <QGuiApplication>
#include <QApplication>
#include <QQmlApplicationEngine>
#include "qunixsockettotcpserver.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QApplication app(argc, argv);
auto server = new QUnixsocketToTcpServer("/var/run/docker.sock");
server->listen(QHostAddress::LocalHost,2323);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment