Нуждаюсь в квалифицированной помощи.
Суть:
1.h
QTextDocument *document;
void initItemsBuild( QString nameHero, QTextDocument* document );
2.h
dlgItemsBuild(QString nameHero, QTextDocument* document);
1.cpp
document = new QTextDocument();
document->setPlainText("xxxxxxxxxxxxx.txt");
void dotaMain::initItemsBuild( QString nameHero, QTextDocument* document )
{
if( itemsBuild == NULL)
itemsBuild = new dlgItemsBuild( nameHero, document );
itemsBuild->exec();
return;
}
2.cpp
dlgItemsBuild::dlgItemsBuild(QString nameHero, QTextDocument* document)
{
ui->lblNameHero->setText( nameHero );
ui->teDescription->setDocument( document );
}
Ошибка:
/home/kuvaldin/work/test-build-desktop/../test/src/dotamain.cpp:51: undefined reference to `dlgItemsBuild::dlgItemsBuild(QString, QTextDocument const*)'