En esta página

QNativeInterface::QCocoaScreen Struct

Interfaz nativa para una pantalla en macOS. Más...

Encabezado: #include <QScreen>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Desde: Qt 6.11

Funciones públicas

QCocoaScreen()
QCocoaScreen(const QNativeInterface::QCocoaScreen &)
QCocoaScreen(QNativeInterface::QCocoaScreen &&)
int *nativeScreen() const
QNativeInterface::QCocoaScreen &operator=(QNativeInterface::QCocoaScreen &&)
QNativeInterface::QCocoaScreen &operator=(const QNativeInterface::QCocoaScreen &)

Descripción detallada

Se accede a través de ` QScreen::nativeInterface()`.

Documentación de la función miembro

[constexpr noexcept default] QCocoaScreen::QCocoaScreen()

Crea por defecto una instancia de ` QCocoaScreen`.

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

Crea una instancia de « QCocoaScreen » mediante copia. Esta función se ha eliminado.

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

Crea una instancia de ` QCocoaScreen`. Esta función ha sido eliminada.

int *QCocoaScreen::nativeScreen() const

Devuelve el objeto NSScreen subyacente de este ` QScreen`.

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

Asigna mediante «move» other a esta instancia de QCocoaScreen. Esta función se elimina.

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

Asigna por copia other a esta instancia de QCocoaScreen. Esta función se ha eliminado.

© 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.