TaskbarButton QML Type

Manages Windows taskbar buttons. 更多...

import 语句: import QtWinExtras 1.0
Since: QtWinExtras 1.0

特性

详细描述

The TaskbarButton type enables you to set an overlay icon and to display a progress indicator on a taskbar button. An overlay icon indicates change in the state of the application. A progress indicator shows how time-consuming tasks are progressing.

范例

The following example illustrates how to use TaskbarButton in QML:

Window {
    TaskbarButton {
        overlay.iconSource: "loading.png"
        overlay.accessibleDescription: "Loading"
        progress.visible: true
        progress.value: 50
    }
}
					

Taskbar Button

另请参阅 QWinTaskbarButton and QWinTaskbarProgress .

特性文档编制

overlay group

overlay.iconSource : url

overlay.accessibleDescription : string

The overlay icon and a description of the overlay for accessibility purposes.

progress group

progress.value : int

progress.minimum : int

progress.maximum : int

progress.visible : bool

progress.paused : bool

progress.stopped : bool

The taskbar progress indicator.

另请参阅 QWinTaskbarProgress .