Provides types and declarations specific to Qt Quick Ultralite and miscellaneous functions related to application life cycle. 更多...
Header: | #include <> |
namespace | 平台 |
namespace | PlatformInterface |
class | 应用程序 |
class | EventQueue |
struct | 图像 |
struct | ImageProvider |
struct | ImageWriteGuard |
struct | ListModel |
class | Object |
struct | 特性 |
struct | RootItem |
struct | SharedImage |
struct | 信号 |
struct | Singleton |
class | Timer |
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 () |
Application 类用于启动 Qt Quick Ultralite。 更多...
Provides a convenient way to send and receive events across different parts of the application. 更多...
An image representation that allows direct access to the pixel data. 更多...
The ImageProvider class provides an interface for supporting image requests in QML. 更多...
A helper for calling Image::beginWrite () 和 Image::endWrite (). 更多...
Inherit from this class to expose a model to QML. 更多...
Provides abstract implementation for all items or objects used in Qt Quick Ultralite. 更多...
The Property class can be used to hold a property of a given type. 更多...
The RootItem class is a public type used in Application::setRootItem (). 更多...
Shared reference to image data. 更多...
Allows creating a signal that can be connected from QML. 更多...
Inherit from this class to expose the C++ class or struct to the QML as a singleton. 更多...
Provides a way to run repetitive and single-shot timers. 更多...
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. |
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 为
double
unless Qt Quick Ultralite runtime is built with
QUL_QREAL_SINGLEPRECISION
CMake option.
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 应用程序的入口点 .
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 应用程序的入口点 .