C++
oadgadgad
这个作者很懒,什么都没留下…
展开
-
‘class QApplication‘ has no member named ‘desktop‘
#define qApp (static_cast<QApplication *>(QCoreApplication::instance()))原代码:int width = qApp->desktop()->availableGeometry().width() - 120;修改后代码:int width = qApp->screens()[0]->availableGeometry().width() - 120;Qt6要用下面方式获取宽度...原创 2022-01-14 15:45:12 · 1295 阅读 · 0 评论 -
CString转char[](char数组)
wcscpy_s(char数组, CString类型.GetBuffer());原创 2021-12-17 11:25:00 · 246 阅读 · 0 评论