In questa pagina

QNativeInterface::QGLXContext Struct

Interfaccia nativa per un contesto GLX. Per saperne di più...

Intestazione: #include <QOpenGLContext>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
A partire da: Qt 6.0

Funzioni pubbliche

QGLXContext()
QGLXContext(const QNativeInterface::QGLXContext &)
QGLXContext(QNativeInterface::QGLXContext &&)
int nativeContext() const
QNativeInterface::QGLXContext &operator=(QNativeInterface::QGLXContext &&)
QNativeInterface::QGLXContext &operator=(const QNativeInterface::QGLXContext &)

Membri pubblici statici

QOpenGLContext *fromNative(int configBasedContext, QOpenGLContext *shareContext = nullptr)
QOpenGLContext *fromNative(int visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr)

Descrizione dettagliata

Accessibile tramite ` QOpenGLContext::nativeInterface()`.

Documentazione delle funzioni membro

[constexpr noexcept default] QGLXContext::QGLXContext()

Crea un’istanza di ` QGLXContext` con i valori predefiniti.

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

Crea una copia di un'istanza di ` QGLXContext`. Questa funzione è stata eliminata.

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

Crea un'istanza di ` QGLXContext`. Questa funzione è stata eliminata.

[static] QOpenGLContext *QGLXContext::fromNative(int configBasedContext, QOpenGLContext *shareContext = nullptr)

Adotta un GLXContext configBasedContext creato da un FBConfig.

Il contesto deve essere creato a partire da una configurazione del framebuffer, utilizzando la funzione glXCreateNewContext.

La proprietà dell’ QOpenGLContext creato shareContext viene trasferita al chiamante.

[static] QOpenGLContext *QGLXContext::fromNative(int visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr)

Adotta un oggetto GLXContext creato da un elemento visivo X.

Il contesto deve essere creato a partire da un visual, utilizzando la funzione glXCreateContext. Lo stesso visual deve essere passato come puntatore a una struttura XVisualInfo, nell'argomento visualInfo.

La proprietà dell'QOpenGLContext creato viene trasferita al chiamante.

int QGLXContext::nativeContext() const

Restituisce il GLXContext sottostante.

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

Assegna " other " a questa istanza di " QGLXContext ". Questa funzione viene eliminata.

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

Copia e assegna other a questa istanza di QGLXContext. Questa funzione viene eliminata.

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