- 博客(4)
- 收藏
- 关注
原创 QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0
继承QAbstractScroll后,重新实现paintEvent函数时,报错:QWidget::paintEngine: Should no longer be calledQPainter::begin: Paint device returned engine == 0, type: 1QPainter::setFont: Painter not activeQPainter::setPen: Painter not activeQPainter::translate: Painter no
2022-04-01 09:23:55 1508
翻译 【无标题】
Qt 5.15 设置MainWindow 全屏显示报错输出以下报错内容输出以下报错内容onecore\windows\directx\database\helperlibrary\lib\perappusersettingsqueryimpl.cpp(121)\dxgi.dll!00007FFBA0D6D7F8: (caller: 00007FFBA0D4D167) ReturnHr(1) tid(64d8) 8000FFFF Catastrophic failure onecore\windows\d
2022-02-28 11:38:03 475
原创 2020-12-31
针对QPixmap使用文件路径加载图片,但是不显示的问题: 添加路劲的时候:加载图片的时候直接复制粘贴,会自动显示路径在加载路径的时候文件名尽量不要是中文
2020-12-31 13:50:43 92
原创 C++学习记录
C++类初始化直接调用另一个类的构造函数生成副本初始化#include <iostream>using namespace std;class A{public: A(int i) { cout << "A" << i << endl; }};class B{public: B(A a) { cout << "B"; };};int main(){ B b(A(3)); return 0;}欢迎使用Ma
2020-11-22 10:21:47 59
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人