Qt开发中遇到的问题与解决方法

来源:互联网 发布:超牛数据恢复免费软件 编辑:程序博客网 时间:2024/05/16 13:46

此文用于记录我平时使用Qt开发的过程中遇到的问题及解决方法 


1、使用QWebView时遇到到错误:

QSslSocket: cannot resolve TLSv1_1_client_method
QSslSocket: cannot resolve TLSv1_2_client_method
QSslSocket: cannot resolve TLSv1_1_server_method
QSslSocket: cannot resolve TLSv1_2_server_method

原因:应该是原来安装的openssl版本太老了

解决方法:安装新版本的openssl,下载地址":http://slproweb.com/products/Win32OpenSSL.html


2、在使用QPainter时遇到如下错误:

QWidget::paintEngine: Should no longer be called

QPainter::begin: Paint device returned engine == 0, type: 1


可能原因:QPainter只能用在paintEvent()函数中


0 0