On this page

QNativeInterface::QAndroidScreen Struct

Native interface to a screen. More...

Header: #include <QAndroidScreen>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 6.7

Public Functions

QAndroidScreen()
QAndroidScreen(const QNativeInterface::QAndroidScreen &)
QAndroidScreen(QNativeInterface::QAndroidScreen &&)
virtual int displayId() const = 0
QNativeInterface::QAndroidScreen &operator=(QNativeInterface::QAndroidScreen &&)
QNativeInterface::QAndroidScreen &operator=(const QNativeInterface::QAndroidScreen &)

Detailed Description

Accessed through QScreen::nativeInterface().

Member Function Documentation

[constexpr noexcept default] QAndroidScreen::QAndroidScreen()

Default-constructs an instance of QAndroidScreen.

[delete] QAndroidScreen::QAndroidScreen(const QNativeInterface::QAndroidScreen &)

Copy-constructs an instance of QAndroidScreen. This function is deleted.

[delete] QAndroidScreen::QAndroidScreen(QNativeInterface::QAndroidScreen &&)

Move-constructs an instance of QAndroidScreen. This function is deleted.

[pure virtual] int QAndroidScreen::displayId() const

Returns the id of the underlying Android display.

[delete] QNativeInterface::QAndroidScreen &QAndroidScreen::operator=(QNativeInterface::QAndroidScreen &&)

Move-assigns other to this QAndroidScreen instance. This function is deleted.

[delete] QNativeInterface::QAndroidScreen &QAndroidScreen::operator=(const QNativeInterface::QAndroidScreen &)

Copy-assigns other to this QAndroidScreen instance. This function is deleted.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.