aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-06-14 16:04:15 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-06-21 10:00:48 +0000
commit051b9f4ed9308c0c5ae555825330a3170e778bb9 (patch)
tree2c4af5204c7cdb9664b023c278da03d0242d10b4
parent4eba3e774a7596ae03aec4c4bf7ec9dcc2c0c2b5 (diff)
CoAP Multicast Discovery example: do not set Qt::AA_EnableHighDpiScaling attribute
It's deprecated and has no effect in Qt 6, as High-DPI is always enabled. The following warning is generated when using it: warning: ‘Qt::AA_EnableHighDpiScaling’ is deprecated: High-DPI scaling is always enabled. This attribute no longer has any effect. [-Wdeprecated-declarations] Remove this line to get rid of a warning. Task-number: QTBUG-113858 Change-Id: I9f8cdfade553c07ea60e31672f719ee29e6f9b1c Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 1eb537da531df9024f5c1d4f78dd1606bc7ad2ae) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/coap/quickmulticastclient/main.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/coap/quickmulticastclient/main.cpp b/examples/coap/quickmulticastclient/main.cpp
index ee1189a..c59704e 100644
--- a/examples/coap/quickmulticastclient/main.cpp
+++ b/examples/coap/quickmulticastclient/main.cpp
@@ -6,8 +6,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;