fea54241aa
ScreenGadget visualizes virtual desktop screen layout, in device independent and native pixels. This can be used to debug the (sometimes surprising) device independent screen geometry resulting from Qt applying a scale factor. Change-Id: I5b18e0fc9a54ba3e14d648794429b2eeadd25748 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
21 lines
386 B
CMake
21 lines
386 B
CMake
# special case skip regeneration
|
|
cmake_minimum_required(VERSION 3.14)
|
|
project(screengadget LANGUAGES CXX)
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(Qt6 COMPONENTS Core)
|
|
find_package(Qt6 COMPONENTS Gui)
|
|
find_package(Qt6 COMPONENTS Widgets)
|
|
|
|
qt_add_executable(screengadget
|
|
main.cpp
|
|
)
|
|
|
|
target_link_libraries(screengadget PUBLIC
|
|
Qt::Core
|
|
Qt::Gui
|
|
Qt::GuiPrivate
|
|
Qt::Widgets
|
|
)
|
|
|