Qul Namespace

Provides types and declarations specific to Qt Quick Ultralite and miscellaneous functions related to application life cycle. 更多...

Header: #include <>

    名称空间

    namespace 平台
    namespace PlatformInterface

    类型

    enum EventQueueOverrunPolicy { EventQueueOverrunPolicy_Discard, EventQueueOverrunPolicy_OverwriteOldest }
    enum PixelFormat { PixelFormat_ARGB32_Premultiplied, PixelFormat_ARGB32, PixelFormat_RGB32, PixelFormat_RGB16, PixelFormat_Alpha8, PixelFormat_Invalid }
    typedef qreal

    函数

    void appMain (const void * arg = 0)
    void initPlatform ()

    详细描述

    class 应用程序

    Application 类用于启动 Qt Quick Ultralite。 更多...

    class EventQueue

    Provides a convenient way to send and receive events across different parts of the application. 更多...

    class 图像

    An image representation that allows direct access to the pixel data. 更多...

    class ImageProvider

    The ImageProvider class provides an interface for supporting image requests in QML. 更多...

    class ImageWriteGuard

    A helper for calling Image::beginWrite () 和 Image::endWrite (). 更多...

    class ListModel

    Inherit from this class to expose a model to QML. 更多...

    class Object

    Provides abstract implementation for all items or objects used in Qt Quick Ultralite. 更多...

    class 特性

    The Property class can be used to hold a property of a given type. 更多...

    class RootItem

    The RootItem class is a public type used in Application::setRootItem (). 更多...

    class SharedImage

    Shared reference to image data. 更多...

    class 信号

    Allows creating a signal that can be connected from QML. 更多...

    class Singleton

    Inherit from this class to expose the C++ class or struct to the QML as a singleton. 更多...

    class Timer

    Provides a way to run repetitive and single-shot timers. 更多...

    类型文档编制

    enum Qul:: EventQueueOverrunPolicy

    Defines what happens when an event is posted to a EventQueue and the queue is already full.

    常量 描述
    Qul::EventQueueOverrunPolicy_Discard 0 If the queue is full, the posted event will be discarded.
    Qul::EventQueueOverrunPolicy_OverwriteOldest 1 If the queue is full, the posted event will overwrite the oldest existing event in the queue. The overwritten event is lost.

    enum Qul:: PixelFormat

    This enum specifies the pixel format used in an area of memory.

    注意: Not all pixel formats are supported on all platforms.

    常量 描述
    Qul::PixelFormat_ARGB32_Premultiplied 1 Supported on all platforms.
    Qul::PixelFormat_ARGB32 0 Supported on STM32 and NXP.
    Qul::PixelFormat_RGB32 2 Usually supported only when color depth is 32 bits.
    Qul::PixelFormat_RGB16 4 Usually supported only when color depth is 16 bits.
    Qul::PixelFormat_Alpha8 5 Supported on all platforms.
    Qul::PixelFormat_Invalid 8 Represents an invalid pixel format.

    typedef Qul:: qreal

    Typedef 为 double unless Qt Quick Ultralite runtime is built with QUL_QREAL_SINGLEPRECISION CMake option.

    函数文档编制

    void Qul:: appMain (const void * arg = 0)

    This function initializes and also acts as a main loop for Qt Quick Ultralite application. This function never exits. arg is not used.

    Platform hardware needs to be initialized before calling this function.

    This function is called implicitly as part of default entry point implementation if app_target_default_entrypoint 被使用。

    This function was introduced in Qt Quick Ultralite 1.0.

    另请参阅 initPlatform and Qt Quick Ultralite 应用程序的入口点 .

    void Qul:: initPlatform ()

    Initialize Board Support Package (BSP).

    This function must be called before Qt Quick Ultralite is initialized to operate correctly.

    It's up to application developer on how and when this function will be called. Typically it's called just before appMain , but developer may also decide not call it all and perform own BSP initialization.

    This function is called implicitly as part of default entry point implementation if app_target_default_entrypoint 被使用。

    This function was introduced in Qt Quick Ultralite 1.0.

    另请参阅 appMain and Qt Quick Ultralite 应用程序的入口点 .