PDA

View Full Version : problem with qt creator



mmm286
24th May 2010, 16:10
Hi,

I'm trying to do a project with qt creator. In mainwindow.ui, I open qt designer and I put a qlabel with objectName called "eti".

Then, in mainwindow.cpp I do:
eti->setText("Hola");

But when I compile it says me:
'eti' was not declared in this scope

Could you help me please? Many thanks and sorry for my english!

sgrant327
24th May 2010, 16:12
Try:


ui->eti->setText("Hola");

And, no offense, but try reading the documentation....