我想实现按一个按钮后让一幅图片转起来。
我先用 void Dialog::paintEvent(QPaintEvent *event) 事件的方法加入一张图片。
之后想用 void Dialog::on_startBtn_clicked() 为点击后的响应事件。
但是总是出现
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::translate: Painter not active
QPainter::rotate: Painter not active
QPainter::translate: Painter not active
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::translate: Painter not active
QPainter::rotate: Painter not active
QPainter::translate: Painter not active
QPaintDevice: Cannot destroy paint device that is being painted
请问是怎么回事?
或者有什么其他方法可以实现让它转起来?