QPaintDevice: Cannot destroy paint device that is being painted
2013-10-07 10:30
731 查看
在paintEvent中,使用QPainter * 绘制图像出现此问题。解决:
1、改为不使用QPainter指针。
2、添上begin(), end()
1、改为不使用QPainter指针。
2、添上begin(), end()
QPainter * painter = new QPainter(); painter->begin (this);//!!! painter->drawLine (...); painter->end ();//!!!
相关文章推荐
- 错误案例(QPaintDevice: Cannot destroy paint device that is being painted)
- 真机调试报错:Please verify that your device’s clock is properly set
- QT出现 Cannot create children for a parent that is in a different thread 的解决方法:
- 遇到ORA-01940: cannot drop a user that is currently
- Optional int parameter 'version' is present but cannot be translated into a null value due to being
- 【iOS】Unlock iPhone to Continue Xcode cannot launch demo1_greating on iPhone because the device is lo
- Please verify that your device’s clock is properly set, and that your signing certificate is not ex
- Qt出现QObject: Cannot create children for a parent that is in a different thread.问题
- Please verify that your device’s clock is properly set, and that your signing certificate is not exp
- Please verify that your device’s clock is properly set, and that your signing certificate is not exp
- Cannot drop the database ‘XXX’ because it is being used for replication.
- “(null)” is of a model that is not supported by this version of Xcode. Please use a different device.
- The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server databas
- 当你遇到"modifying layer that is being finalized"的时候怎么办?
- QObject: Cannot create children for a parent that is in a different thread.
- ORA-01940: cannot drop a user that is currently connected
- iOS真机测试,Please verify that your device’s clock is properly set...
- 诡异的问题:Cannot forward a response that is already committed
- xcode 真机运行出错Please verify that your device’s clock is properly set
- How to: Determine if a Package that is About to be Compiled is Being Used Currently (文档 ID 1054939.6