Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
qqtsvgpushbutton.h 682 Bytes
Copy Edit Web IDE Raw Blame History
T.D.R. authored 2018-05-12 21:50 . support msvc2015
#ifndef QQTSVGPUSHBUTTON_H
#define QQTSVGPUSHBUTTON_H
#include <qqtpushbutton.h>
#include <QSvgRenderer>
#include <qqtwidgets.h>
#include <qqt-local.h>
#include <qqtcore.h>
class QQTSHARED_EXPORT QQtSvgPushButton : public QQtPushButton
{
Q_OBJECT
public:
explicit QQtSvgPushButton ( QWidget* parent = nullptr );
virtual ~QQtSvgPushButton() {}
/**
* @brief renderToVariable
* call this function after iconTable() set.
*/
void renderToVariable();
signals:
public slots:
// QWidget interface
protected:
virtual void paintEvent ( QPaintEvent* event ) override;
private:
QSvgRenderer r[BTN_MAX];
};
#endif // QQTSVGPUSHBUTTON_H

Comment ( 0 )

Sign in for post a comment