Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Soheil Armin
QAADockerBuild
Commits
a6fa076c
Commit
a6fa076c
authored
Mar 18, 2022
by
Soheil Armin
Browse files
Widgets required for FileDialog
On systems without native file dialog
parent
91d971dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
a6fa076c
...
...
@@ -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
)
main.cpp
View file @
a6fa076c
#include <Q
Gui
Application>
#include <QApplication>
#include <QQmlApplicationEngine>
#include "qunixsockettotcpserver.h"
int
main
(
int
argc
,
char
*
argv
[])
{
Q
Gui
Application
app
(
argc
,
argv
);
QApplication
app
(
argc
,
argv
);
auto
server
=
new
QUnixsocketToTcpServer
(
"/var/run/docker.sock"
);
server
->
listen
(
QHostAddress
::
LocalHost
,
2323
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment