IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QWinJumpListItem Class

The QWinJumpListItem class represents a jump list item.

This class was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWinJumpListItem Class

  • Header: QWinJumpListItem

  • Since: Qt 5.2

  • qmake: QT += winextras

Detailed Description

 

Member Type Documentation

 

enum QWinJumpListItem::Type

This enum describes the available QWinJumpListItem types.

Constant

Value

Description

QWinJumpListItem::Destination

0

Item acts as a link to a file that the application can open.

QWinJumpListItem::Link

1

Item represents a link to an application.

QWinJumpListItem::Separator

2

Item is a separator. Only tasks category supports separators.

Member Function Documentation

 

[explicit] QWinJumpListItem::QWinJumpListItem(QWinJumpListItem::Type type)

Constructs a QWinJumpListItem with the specified type.

QWinJumpListItem::~QWinJumpListItem()

Destroys the QWinJumpListItem.

QStringList QWinJumpListItem::arguments() const

Returns the command-line arguments of this item.

See Also

See also setArguments()

QString QWinJumpListItem::description() const

Returns the description of this item.

See Also

See also setDescription()

QString QWinJumpListItem::filePath() const

Returns the file path set by setFilePath().

See Also

See also setFilePath()

QIcon QWinJumpListItem::icon() const

Returns the icon set for this item.

See Also

See also setIcon()

void QWinJumpListItem::setArguments(const QStringList &arguments)

Sets command-line arguments for this item.

This value is used only if the type of this item is QWinJumpListItem::Link.

See Also

See also arguments(), setFilePath()

void QWinJumpListItem::setDescription(const QString &description)

Sets a description for this item.

This value is used only if the type of this item is QWinJumpListItem::Link.

See Also

See also description()

void QWinJumpListItem::setFilePath(const QString &filePath)

Sets the item filePath, the meaning of which depends on the type of this item:

  • If the item type is QWinJumpListItem::Destination, filePath is the path to a file that can be opened by an application.

  • If the item type is QWinJumpListItem::Link, filePath is the path to an executable that is executed when this item is clicked by the user.

See Also

void QWinJumpListItem::setIcon(const QIcon &icon)

Sets the icon of this item.

This value is used only if the type of this item is QWinJumpListItem::Link.

See Also

See also icon()

void QWinJumpListItem::setTitle(const QString &title)

Sets the title of this item.

This value is used only if the type of this item is QWinJumpListItem::Link.

See Also

See also title()

void QWinJumpListItem::setType(QWinJumpListItem::Type type)

Sets the item type.

See Also

See also type()

void QWinJumpListItem::setWorkingDirectory(const QString &workingDirectory)

Sets the path to the working directory of this item to workingDirectory.

This value is used only if the type of this item is QWinJumpListItem::Link.

See Also

QString QWinJumpListItem::title() const

Returns the title of this item.

See Also

See also setTitle()

QWinJumpListItem::Type QWinJumpListItem::type() const

Returns the item type.

See Also

See also setType()

QString QWinJumpListItem::workingDirectory() const

Returns the working directory path.

See Also

See also setWorkingDirectory()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+