LINUX.ORG.RU

Помогите ламеру с Qstring


0

0

Написал небольшую програмку на QT. Сначала создал форму в дизайнере, а потом унаследовал его класс. Теперь захотел обьявить переменную типа Qstring, а в ответ одна ругань, хотя всё подключил... Вот код

#include "helloworld.h" #include <qlabel.h> #include <qlineedit.h> #include <qpushbutton.h> #include <qstring.h>

helloworld::helloworld(QWidget *, const char *) //: Tmain(parent, name) { connect(Tbutton, SIGNAL(clicked()), this, SLOT(wazap())); //label = new QLabel(tr("Find &what:"), this); //return 0; }

void helloworld::wazap() { this->Tlabel->setText(this->Tline->text()); //return 0; Qstring aqq = ""; }

В ответ говорит мне, что helloworld.cpp:23: error: &#8216;Qstring&#8217; was not declared in this scope helloworld.cpp:23: error: expected `;' before &#8216;aqq&#8217;

Что делать???

anonymous

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.