Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQnxIntegration Class Reference

#include <qqnxintegration.h>

+ Inheritance diagram for QQnxIntegration:
+ Collaboration diagram for QQnxIntegration:

Public Types

enum  Option {
  NoOptions = 0x0 , FullScreenApplication = 0x1 , RootWindow = 0x2 , AlwaysFlushScreenContext = 0x4 ,
  SurfacelessEGLContext = 0x8
}
 
- Public Types inherited from QPlatformIntegration
enum  Capability {
  ThreadedPixmaps = 1 , OpenGL , ThreadedOpenGL , SharedGraphicsCache ,
  BufferQueueingOpenGL , WindowMasks , MultipleWindows , ApplicationState ,
  ForeignWindows , NonFullScreenWindows , NativeWidgets , WindowManagement ,
  WindowActivation , SyncState , RasterGLSurface , AllGLFunctionsQueryable ,
  ApplicationIcon , SwitchableWidgetComposition , TopStackedNativeChildWindows , OpenGLOnRasterSurface ,
  MaximizeUsingFullscreenGeometry , PaintEvents , RhiBasedRendering , ScreenWindowGrabbing
}
 Capabilities are used to determine specific features of a platform integration. More...
 
enum  StyleHint {
  CursorFlashTime , KeyboardInputInterval , MouseDoubleClickInterval , StartDragDistance ,
  StartDragTime , KeyboardAutoRepeatRate , ShowIsFullScreen , PasswordMaskDelay ,
  FontSmoothingGamma , StartDragVelocity , UseRtlExtensions , PasswordMaskCharacter ,
  SetFocusOnTouchRelease , ShowIsMaximized , MousePressAndHoldInterval , TabFocusBehavior ,
  ReplayMousePressOutsidePopup , ItemViewActivateItemOnSingleClick , UiEffects , WheelScrollLines ,
  ShowShortcutsInContextMenus , MouseQuickSelectionThreshold , MouseDoubleClickDistance , FlickStartDistance ,
  FlickMaximumVelocity , FlickDeceleration , UnderlineShortcut
}
 

Public Member Functions

 QQnxIntegration (const QStringList &paramList)
 
 ~QQnxIntegration ()
 
bool hasCapability (QPlatformIntegration::Capability cap) const override
 
QPlatformWindowcreateForeignWindow (QWindow *window, WId nativeHandle) const override
 
QPlatformWindowcreatePlatformWindow (QWindow *window) const override
 Factory function for QPlatformWindow.
 
QPlatformBackingStorecreatePlatformBackingStore (QWindow *window) const override
 Factory function for QPlatformBackingStore.
 
void moveToScreen (QWindow *window, int screen)
 
bool supportsNavigatorEvents () const
 
QAbstractEventDispatchercreateEventDispatcher () const override
 Factory function for the GUI event dispatcher.
 
QPlatformFontDatabasefontDatabase () const override
 Accessor for the platform integration's fontdatabase.
 
QPlatformNativeInterfacenativeInterface () const override
 
QPlatformClipboardclipboard () const override
 Accessor for the platform integration's clipboard.
 
QVariant styleHint (StyleHint hint) const override
 
QPlatformServicesservices () const override
 
QWindowwindow (screen_window_t qnxWindow) const
 
QQnxScreenscreenForNative (screen_display_t qnxScreen) const
 
void createDisplay (screen_display_t display, bool isPrimary)
 
void removeDisplay (QQnxScreen *screen)
 
QQnxScreenprimaryDisplay () const
 
Options options () const
 
screen_context_t screenContext ()
 
QByteArray screenContextId ()
 
QQnxNavigatorEventHandlernavigatorEventHandler ()
 
- Public Member Functions inherited from QPlatformIntegration
virtual ~QPlatformIntegration ()
 
virtual bool hasCapability (Capability cap) const
 
virtual QPlatformPixmapcreatePlatformPixmap (QPlatformPixmap::PixelType type) const
 Factory function for QPlatformPixmap.
 
virtual QPlatformWindowcreatePlatformWindow (QWindow *window) const =0
 Factory function for QPlatformWindow.
 
virtual QPlatformWindowcreateForeignWindow (QWindow *, WId) const
 
virtual QPlatformBackingStorecreatePlatformBackingStore (QWindow *window) const =0
 Factory function for QPlatformBackingStore.
 
virtual QPlatformOpenGLContextcreatePlatformOpenGLContext (QOpenGLContext *context) const
 Factory function for QPlatformOpenGLContext.
 
virtual QPlatformSharedGraphicsCachecreatePlatformSharedGraphicsCache (const char *cacheId) const
 Factory function for QPlatformSharedGraphicsCache.
 
virtual QPaintEnginecreateImagePaintEngine (QPaintDevice *paintDevice) const
 Factory function for QPaintEngine.
 
virtual QAbstractEventDispatchercreateEventDispatcher () const =0
 Factory function for the GUI event dispatcher.
 
virtual void initialize ()
 Performs initialization steps that depend on having an event dispatcher available.
 
virtual void destroy ()
 Called before the platform integration is deleted.
 
virtual QPlatformFontDatabasefontDatabase () const
 Accessor for the platform integration's fontdatabase.
 
virtual QPlatformClipboardclipboard () const
 Accessor for the platform integration's clipboard.
 
virtual QPlatformInputContextinputContext () const
 Returns the platforms input context.
 
virtual QPlatformNativeInterfacenativeInterface () const
 
virtual QPlatformServicesservices () const
 
virtual QVariant styleHint (StyleHint hint) const
 
virtual Qt::WindowState defaultWindowState (Qt::WindowFlags) const
 
virtual Qt::KeyboardModifiers queryKeyboardModifiers () const
 
virtual QList< int > possibleKeys (const QKeyEvent *) const
 Should be used to obtain a list of possible shortcuts for the given key event.
 
virtual QStringList themeNames () const
 
virtual QPlatformThemecreatePlatformTheme (const QString &name) const
 
virtual QPlatformOffscreenSurfacecreatePlatformOffscreenSurface (QOffscreenSurface *surface) const
 Factory function for QOffscreenSurface.
 
virtual QPlatformSessionManagercreatePlatformSessionManager (const QString &id, const QString &key) const
 
virtual void sync ()
 
virtual QOpenGLContext::OpenGLModuleType openGLModuleType ()
 Platform integration function for querying the OpenGL implementation type.
 
virtual void setApplicationIcon (const QIcon &icon) const
 
virtual void setApplicationBadge (qint64 number)
 
virtual void beep () const
 
virtual void quit () const
 
template<auto func, typename... Args>
auto call (Args... args)
 

Static Public Member Functions

static QQnxIntegrationinstance ()
 

Friends

class QQnxWindow
 

Additional Inherited Members

- Protected Member Functions inherited from QPlatformIntegration
 QPlatformIntegration ()=default
 

Detailed Description

Definition at line 45 of file qqnxintegration.h.

Member Enumeration Documentation

◆ Option

Enumerator
NoOptions 
FullScreenApplication 
RootWindow 
AlwaysFlushScreenContext 
SurfacelessEGLContext 

Definition at line 48 of file qqnxintegration.h.

Constructor & Destructor Documentation

◆ QQnxIntegration()

QQnxIntegration::QQnxIntegration ( const QStringList paramList)
explicit

◆ ~QQnxIntegration()

QQnxIntegration::~QQnxIntegration ( )

Definition at line 220 of file qqnxintegration.cpp.

References qIntegrationDebug.

Member Function Documentation

◆ clipboard()

QPlatformClipboard * QQnxIntegration::clipboard ( ) const
overridevirtual

Accessor for the platform integration's clipboard.

Default implementation returns a default QPlatformClipboard.

See also
QPlatformClipboard

Reimplemented from QPlatformIntegration.

Definition at line 437 of file qqnxintegration.cpp.

References qIntegrationDebug.

◆ createDisplay()

void QQnxIntegration::createDisplay ( screen_display_t  display,
bool  isPrimary 
)

Definition at line 636 of file qqnxintegration.cpp.

References QList< T >::append(), QObject::connect(), QWindowSystemInterface::handleScreenAdded(), screen, SIGNAL, and SLOT.

+ Here is the call graph for this function:

◆ createEventDispatcher()

QAbstractEventDispatcher * QQnxIntegration::createEventDispatcher ( ) const
overridevirtual

Factory function for the GUI event dispatcher.

The platform plugin should create and return a QAbstractEventDispatcher subclass when this function is called.

If the platform plugin for some reason creates the event dispatcher outside of this function (for example in the constructor), it needs to handle the case where this function is never called, ensuring that the event dispatcher is still deleted at some point (typically in the destructor).

Note that the platform plugin should never explicitly set the event dispatcher itself, using QCoreApplication::setEventDispatcher(), but let QCoreApplication decide when and which event dispatcher to create.

Since
5.2

Implements QPlatformIntegration.

Definition at line 420 of file qqnxintegration.cpp.

References qIntegrationDebug.

◆ createForeignWindow()

QPlatformWindow * QQnxIntegration::createForeignWindow ( QWindow window,
WId  nativeHandle 
) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 301 of file qqnxintegration.cpp.

References qWarning, and window().

+ Here is the call graph for this function:

◆ createPlatformBackingStore()

QPlatformBackingStore * QQnxIntegration::createPlatformBackingStore ( QWindow window) const
overridevirtual

Factory function for QPlatformBackingStore.

The QWindow parameter is a pointer to the top level widget(tlw) the window surface is created for. A QPlatformWindow is always created before the QPlatformBackingStore for tlw where the widget also requires a backing store.

See also
QBackingStore
createPlatformWindow()

Implements QPlatformIntegration.

Definition at line 331 of file qqnxintegration.cpp.

References qIntegrationDebug, and window().

+ Here is the call graph for this function:

◆ createPlatformWindow()

QPlatformWindow * QQnxIntegration::createPlatformWindow ( QWindow window) const
overridevirtual

Factory function for QPlatformWindow.

The window parameter is a pointer to the window which the QPlatformWindow is supposed to be created for.

All windows have to have a QPlatformWindow, and it will be created on-demand when the QWindow is made visible for the first time, or explicitly through calling QWindow::create().

In the constructor, of the QPlatformWindow, the window flags, state, title and geometry of the window should be applied to the underlying window. If the resulting flags or state differs, the resulting values should be set on the window using QWindow::setWindowFlags() or QWindow::setWindowState(), respectively.

See also
QPlatformWindow, QPlatformWindowFormat
createPlatformBackingStore()

Implements QPlatformIntegration.

Definition at line 313 of file qqnxintegration.cpp.

References QSurface::OpenGLSurface, options(), qFatal, qIntegrationDebug, QSurface::RasterSurface, RootWindow, and window().

+ Here is the call graph for this function:

◆ fontDatabase()

QPlatformFontDatabase * QQnxIntegration::fontDatabase ( ) const
inlineoverridevirtual

Accessor for the platform integration's fontdatabase.

Default implementation returns a default QPlatformFontDatabase.

See also
QPlatformFontDatabase

Reimplemented from QPlatformIntegration.

Definition at line 82 of file qqnxintegration.h.

◆ hasCapability()

bool QQnxIntegration::hasCapability ( QPlatformIntegration::Capability  cap) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 282 of file qqnxintegration.cpp.

References QPlatformIntegration::BufferQueueingOpenGL, QPlatformIntegration::ForeignWindows, QPlatformIntegration::hasCapability(), QPlatformIntegration::MultipleWindows, QPlatformIntegration::OpenGL, qIntegrationDebug, QPlatformIntegration::ThreadedOpenGL, and QPlatformIntegration::ThreadedPixmaps.

+ Here is the call graph for this function:

◆ instance()

static QQnxIntegration * QQnxIntegration::instance ( )
inlinestatic

Definition at line 59 of file qqnxintegration.h.

Referenced by QQnxWindow::~QQnxWindow(), QQnxWindow::initWindow(), makeFlags(), qScreenCheckError(), QQnxWindow::setScreen(), and QQnxWindow::shouldMakeFullScreen().

+ Here is the caller graph for this function:

◆ moveToScreen()

void QQnxIntegration::moveToScreen ( QWindow window,
int  screen 
)

Definition at line 406 of file qqnxintegration.cpp.

References QList< T >::at(), qIntegrationDebug, screen, QQnxWindow::setScreen(), and window().

+ Here is the call graph for this function:

◆ nativeInterface()

QPlatformNativeInterface * QQnxIntegration::nativeInterface ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 431 of file qqnxintegration.cpp.

◆ navigatorEventHandler()

QQnxNavigatorEventHandler * QQnxIntegration::navigatorEventHandler ( )

Definition at line 702 of file qqnxintegration.cpp.

◆ options()

QQnxIntegration::Options QQnxIntegration::options ( ) const

Definition at line 687 of file qqnxintegration.cpp.

Referenced by createPlatformWindow().

+ Here is the caller graph for this function:

◆ primaryDisplay()

QQnxScreen * QQnxIntegration::primaryDisplay ( ) const

Definition at line 682 of file qqnxintegration.cpp.

References QList< T >::first().

Referenced by QQnxIntegration(), and QQnxInputContext::keyboardRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeDisplay()

void QQnxIntegration::removeDisplay ( QQnxScreen screen)

Definition at line 655 of file qqnxintegration.cpp.

References QListSpecialMethodsBase< T >::contains(), QWindowSystemInterface::handleScreenRemoved(), Q_ASSERT, Q_CHECK_PTR(), QList< T >::removeAll(), and screen.

+ Here is the call graph for this function:

◆ screenContext()

screen_context_t QQnxIntegration::screenContext ( )

Definition at line 692 of file qqnxintegration.cpp.

Referenced by QQnxNativeInterface::nativeResourceForIntegration().

+ Here is the caller graph for this function:

◆ screenContextId()

QByteArray QQnxIntegration::screenContextId ( )

Definition at line 697 of file qqnxintegration.cpp.

◆ screenForNative()

QQnxScreen * QQnxIntegration::screenForNative ( screen_display_t  qnxScreen) const

Definition at line 672 of file qqnxintegration.cpp.

References Q_FOREACH, and screen.

◆ services()

QPlatformServices * QQnxIntegration::services ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 465 of file qqnxintegration.cpp.

◆ styleHint()

QVariant QQnxIntegration::styleHint ( QPlatformIntegration::StyleHint  hint) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 456 of file qqnxintegration.cpp.

References FullScreenApplication, hint(), qIntegrationDebug, QPlatformIntegration::ShowIsFullScreen, and QPlatformIntegration::styleHint().

+ Here is the call graph for this function:

◆ supportsNavigatorEvents()

bool QQnxIntegration::supportsNavigatorEvents ( ) const

Definition at line 707 of file qqnxintegration.cpp.

◆ window()

QWindow * QQnxIntegration::window ( screen_window_t  qnxWindow) const

Definition at line 470 of file qqnxintegration.cpp.

References Q_UNUSED, qIntegrationDebug, and QHash< Key, T >::value().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QQnxWindow

friend class QQnxWindow
friend

Definition at line 155 of file qqnxintegration.h.


The documentation for this class was generated from the following files: