QWinJumpList 類

QWinJumpList 類錶示圍繞 Windows 跳轉列錶的透明包裹器。 更多...

頭: #include <QWinJumpList>
qmake: QT += winextras
Since: Qt 5.2
繼承: QObject

該類已過時。 提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

該類在 Qt 5.2 引入。

特性

公共函數

QWinJumpList (QObject * parent = nullptr)
virtual ~QWinJumpList ()
void addCategory (QWinJumpListCategory * category )
QWinJumpListCategory * addCategory (const QString & title , const QList<QWinJumpListItem *> items = QList<QWinJumpListItem *>())
QList<QWinJumpListCategory *> categories () const
QWinJumpListCategory * frequent () const
QString 標識符 () const
QWinJumpListCategory * recent () const
void setIdentifier (const QString & identifier )
QWinJumpListCategory * tasks () const

公共槽

void clear ()

詳細描述

應用程序可以使用跳轉列錶為用戶提供對文件的更快訪問,或顯示任務或命令的快捷方式。

特性文檔編製

標識符 : QString

此特性保持跳轉列錶標識符

為應用程序跳轉列錶指定可選明確唯一標識符。

默認值為空;取而代之使用係統定義的內部標識符。見 應用程序用戶模型 ID 在 MSDN 進一步瞭解細節。

注意: 標識符不能超過 128 字符,且不能包含空格。標識符太長會自動截取到 128 字符,且空格由下劃綫替換。

訪問函數:

QString 標識符 () const
void setIdentifier (const QString & identifier )

成員函數文檔編製

QWinJumpList:: QWinJumpList ( QObject * parent = nullptr)

構造 QWinJumpList 采用父級對象 parent .

[slot] void QWinJumpList:: clear ()

清零跳轉列錶。

另請參閱 QWinJumpListCategory::clear ().

[虛擬] QWinJumpList:: ~QWinJumpList ()

銷毀 QWinJumpList .

void QWinJumpList:: addCategory ( QWinJumpListCategory * category )

添加自定義 category 到跳轉列錶。

QWinJumpListCategory *QWinJumpList:: addCategory (const QString & title , const QList < QWinJumpListItem *> items = QList<QWinJumpListItem *>())

此函數重載 addCategory()。

創建自定義類彆采用提供的 title 和可選 items ,並將它添加到跳轉列錶。

QList < QWinJumpListCategory *> QWinJumpList:: categories () const

返迴跳轉列錶中的自定義類彆。

QWinJumpListCategory *QWinJumpList:: frequent () const

返迴跳轉列錶中的頻繁項類彆。

QWinJumpListCategory *QWinJumpList:: recent () const

返迴跳轉列錶中的最近項類彆。

QWinJumpListCategory *QWinJumpList:: tasks () const

返迴跳轉列錶中的任務類彆。