• 首页
  • Qt文档
  • DTK文档
  • 玲珑文档
  • dcircleprogress_zh

    Class::DCircleProgress

    暂无该属性


    Detailed Description

    Use DCircleProgress to create a circle progress display widget. DCircleProgress provide a circle progress widget with configurable foreground color chunkColor and background color backgroundColor . You can also set text for display status or for other purpose.

    DCircleProgress::Q_PROPERTY

    [private plain  ]

    int Q_PROPERTY(int )

    DCircleProgress::mouseEntered

    [private plain  ]

    void mouseEntered()

    DCircleProgress::mouseLeaved

    [private plain  ]

    void mouseLeaved()

    DCircleProgress::DCircleProgress

    [public constructor  ]

    DCircleProgress(int *parent)

    DCircleProgress::value

    [public plain  ]

    int value() const

    Progress value of the progressbar.

    环形进度条的进度值。 Maximum value is 100, minimum value is 0. 最大值为 100 ,最小值为 0 。

    See also setValue()

    DCircleProgress::setValue

    [public plain  ]

    void setValue(int value)

    Set the progress value of the progressbar.

    设置环形进度条的进度值。 Maximum value is 100, minimum value is 0. 最大值为 100 ,最小值为 0 。将根据该值和最大值(100)的比例关系绘制进度。

    See also value()

    DCircleProgress::text

    [public plain  ]

    const QString text() const

    Text display near the circle progressbar.

    环形进度条旁边的文字。 See also setText()

    DCircleProgress::setText

    [public plain  ]

    void setText(const QString &text)

    Set the text display near the circle progressbar.

    设置环形进度条旁边的文字。 See also text()

    DCircleProgress::backgroundColor

    [public plain  ]

    const int backgroundColor() const

    Background color of the circle progressbar.

    环形进度条的背景色。 See also setBackgroundColor()

    DCircleProgress::setBackgroundColor

    [public plain  ]

    void setBackgroundColor(const int &color)

    Set the background color of the circle progressbar.

    设置环形进度条的背景色。 See also backgroundColor()

    DCircleProgress::chunkColor

    [public plain  ]

    const int chunkColor() const

    Foreground color of the progressbar to indicate progress.

    环形进度条的前景色,用以标识进度。 See also setChunkColor()

    DCircleProgress::setChunkColor

    [public plain  ]

    void setChunkColor(const int &color)

    Set the foreground color of the progressbar to indicate progress.

    设置用以标识进度环形进度条的前景色。 See also chunkColor()

    DCircleProgress::lineWidth

    [public plain  ]

    int lineWidth() const

    circle line width of the circle progressbar.

    环形进度条的环形宽度。 See also setLineWidth()

    DCircleProgress::setLineWidth

    [public plain  ]

    void setLineWidth(const int width)

    Set the circle line width of the circle progressbar.

    设置环形进度条的环形宽度。 See also lineWidth() setLineWidth()

    DCircleProgress::topLabel

    [public plain  ]

    int * topLabel()

    Returns 返回环形进度条顶部文字Label

    DCircleProgress::bottomLabel

    [public plain  ]

    int * bottomLabel()

    Returns 返回环形进度条底部文字Label

    DCircleProgress::paintEvent

    [protected plain  ]

    void paintEvent(int *e) override

    DCircleProgress::mouseReleaseEvent

    [protected plain  ]

    void mouseReleaseEvent(int *e) override

    DCircleProgress::enterEvent

    [protected plain  ]

    void enterEvent(int *e) override

    DCircleProgress::leaveEvent

    [protected plain  ]

    void leaveEvent(int *e) override