1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/qqtprogressbar.h
tianduanrui 3f857669fc init
2016-12-29 16:49:18 +08:00

37 lines
707 B
C++
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 原装QtProgressBar在板子上paint的时候发生异常所以重写。
* 行为约束图片的大小和Bar的宽度必须相等不容易失真
*/
#ifndef QQTPROGRESSBAR_H
#define QQTPROGRESSBAR_H
#include <QWidget>
#include "qqtwidget.h"
namespace Ui {
class QQTProgressBar;
}
class QQTProgressBar : public QWidget
{
Q_OBJECT
public:
explicit QQTProgressBar(QWidget *parent = 0);
~QQTProgressBar();
void setPixMap(QString back, QString trunk);
public slots:
void setValue(int value);
void setRange(int min, int max);
private:
Ui::QQTProgressBar *ui;
private:
QString m_back, m_trunk;
int m_min, m_max, m_value;
};
#endif // QQTPROGRESSBAR_H