ThumbnailToolBar QML Type

Allows manipulating the window's thumbnail toolbar. 更多...

import 语句: import QtWinExtras 1.15
Since: QtWinExtras 1.0

特性

信号

详细描述

This class allows an application to embed a toolbar in the thumbnail of a window, which is shown when hovering over its taskbar icon. It provides quick access to the window's commands without requiring the user to restore or activate the window.

Media player thumbnail toolbar

范例

Window {
    ThumbnailToolBar {
        ThumbnailToolButton { iconSource: "qrc:///player_rew.png"; tooltip: "Rewind"; onClicked: player.rewind() }
        ThumbnailToolButton { iconSource: "qrc:///player_pause.png"; tooltip: "Pause"; onClicked: player.togglePlay() }
        ThumbnailToolButton { iconSource: "qrc:///player_fwd.png"; tooltip: "Forward"; onClicked: player.forward() }
        ThumbnailToolButton { interactive: false; flat: true }
        ThumbnailToolButton { iconSource: "qrc:///configure.png"; tooltip: "Settings"; onClicked: settingsWindow.show() }
        ThumbnailToolButton { iconSource: "qrc:///document_open_folder.png"; tooltip: "Open"; onClicked: player.open() }
    }
}
					

特性文档编制

iconicLivePreviewSource : url

The pixmap for use as a live (peek) preview when tabbing into the application.

该特性在 Qt 5.4 引入。

iconicNotificationsEnabled : bool

This property holds whether the signals iconicThumbnailRequested() or iconicLivePreviewRequested() 会被发射。

该特性在 Qt 5.4 引入。

iconicThumbnailSource : url

The pixmap for use as a thumbnail representation

该特性在 Qt 5.4 引入。

信号文档编制

iconicLivePreviewRequested ()

This signal is emitted when the operating system requests a new iconic live preview pixmap, typically when the user ALT-tabs to the application.

注意: 相应处理程序是 onIconicLivePreviewRequested .

This signal was introduced in Qt 5.4.

iconicThumbnailRequested ()

This signal is emitted when the operating system requests a new iconic thumbnail pixmap, typically when the thumbnail is shown.

注意: 相应处理程序是 onIconicThumbnailRequested .

This signal was introduced in Qt 5.4.