class CZoomWidget : public QWidget
{
Q_OBJECT
public:
CZoomWidget(QWidget *parent = 0);
~CZoomWidget();
QGraphicsBlurEffect *BlurEffect;
private:
// Ui::imgtestClass ui;
QGraphicsView *m_pView;
QParallelAnimationGroup *pAnimationGroup;
private slots:
virtual void timerEvent(QTimerEvent *e);
};
class CBlurView : public QGraphicsView
{
Q_OBJECT
Q_PROPERTY(qreal BlurRadius READ getBlurRadius WRITE setBlurRadius)
Q_PROPERTY(QPointF pos READ getPos WRITE setPos)
public:
CBlurView(QGraphicsScene *scene, QWidget *parent):QGraphicsView(scene, parent)
{
m_pParent = (CZoomWidget*)parent;
m_BlurRadius = 1.0;
}
private:
CZoomWidget *m_pParent;
qreal m_BlurRadius;
QPointF m_pos;