• 5026阅读
  • 1回复

[提问]Qstring在使用时提示not declared [复制链接]

上一主题 下一主题
离线lyoneidas
 
只看楼主 倒序阅读 楼主  发表于: 2012-11-09
我在MainWindow.cpp里面试图定义一个Qstring变量:

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "QString"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    Qstring list;
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}
但是在编译时报错
D:\Qt\qtcreator-2.5.2\UFIDA_U9_Navigator\mainwindow.cpp:9: 错误:'Qstring' was not declared in this scope

这是为什么呢?我引用了头文件Qstring啊...
离线uidab

只看该作者 1楼 发表于: 2012-11-09
回 楼主(lyoneidas) 的帖子
Qstring   与QString  不同的,大小写!!!
有时候为了工作直接获得答案,而我却失去了思考的乐趣!


飘啊飘,何时能安居!
快速回复
限100 字节
 
上一个 下一个