桃家山小邓
2016-08-01 08:28QT namespace 问题!!!
namespace Ui{
class MainWindow;
}
Ui:: MainWindow *ui;
ui(new Ui::MainWindow),
ui->setupUi(this);
同样的四段代码。QT运行就正常,VS插件QT就报错(不允许使用不完整的类型)。
VS方式是:
Ui::MainWindow Class ui;
ui.setupUi(this);
大牛帮我详细的讲解一下。万分感谢!!!
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- QT使用std::unordered_map时报错:the code model could not parse an included file, which might lead to incorrect code completion and highlighting
- c++
- 1个回答
- c++string和char[],我有一段代码,和测试数据,但是我发现使用string时这段代码出错了,我把string换成对应的char []后代码正常运行
- c++
- 4个回答
- QT程序出现connect: Cannot connect (null)::readyRead()是什么问题。。。?
- 开发语言
- c++
- 2个回答
- 关于WindowsC++的录音保存为wav格式的音频文件的问题?
- 软件工程
- 音频编码
- c++
- 4个回答
- |error: expected type-specifier before '(' token|
- 编译器
- visual studio
- 1个回答
换一换