一品网
  • 首页

error: must use 'class' tag to refer to type 'XX' in this scope


在写程序的时候,遇到了编译器报错 error: must use 'class' tag to refer to type 'thread' in this scope

void MainWindow::freeFreightUi(){
    freeFreight *free = new freeFreight(this);
}

需要指明是是一个类。

修改如下:

void MainWindow::freeFreightUi(){
    class freeFreight *free = new class freeFreight(this);
}
QT

相关


pyqt5-tools安装后 desinner.exe 报错 PyQt5 the application failed to start beca

大爽pyqt5笔记&教程 四 布局 Layout 对其

Qt三方库开发技术(一):QuaZIP介绍、编译和使用

案例分享:Qt便携式致病菌快速检测仪(账号管理、实验过程、二维图表、历史数据、通讯管理

项目实战:Qt+C#轨道交通行业高性能高流畅度模拟火车移动图像控件

QT字符编码

VS2019: VS2019+QT5.14.2 无法打开源文件"ui_xxx.h"的问题

Qt正则表达式限制输入

Qt的正则表达式类(QRegExp)

libusb(4)在Qt中使用libusb

python2.7源码编译安装pyqt5

pycharm2019.3.3+pyqt5+pyUIC

标签

一品网 冀ICP备14022925号-6