• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QPushButton

    下一话题

    QCheckBox

    QCommandLinkButton

    概要

    函数

    详细描述

    PySide.QtGui.QCommandLinkButton widget provides a Vista style command link button.

    The command link is a new control that was introduced by Windows Vista. It's intended use is similar to that of a radio button in that it is used to choose between a set of mutually exclusive options. Command link buttons should not be used by themselves but rather as an alternative to radio buttons in Wizards and dialogs and makes pressing the “next” button redundant. The appearance is generally similar to that of a flat pushbutton, but it allows for a descriptive text in addition to the normal button text. By default it will also carry an arrow icon, indicating that pressing the control will open another window or page.

    class PySide.QtGui. QCommandLinkButton ( [ parent=None ] )
    class PySide.QtGui. QCommandLinkButton ( text [ , parent=None ] )
    class PySide.QtGui. QCommandLinkButton ( text , description [ , parent=None ] )
    参数:

    构造命令链接采用无文本和 parent .

    构造命令链接采用父级 parent 和文本 text .

    构造命令链接采用 text description ,和 parent .

    PySide.QtGui.QCommandLinkButton. description ( )
    返回类型: unicode

    This property holds A descriptive label to complement the button text.

    设置此特性将在按钮上设置描述性文本,以补充文本标签。这通常会以比首要文本更小的字体显示。

    PySide.QtGui.QCommandLinkButton. setDescription ( description )
    参数: description – unicode

    This property holds A descriptive label to complement the button text.

    设置此特性将在按钮上设置描述性文本,以补充文本标签。这通常会以比首要文本更小的字体显示。