PDA

View Full Version : aLabel->show() does not seem to work



nass
18th September 2006, 14:12
hello everyone,
in the aForm::init() function

if ( aUINT == 1 )
{

aButton->setOn(TRUE);//its a toggle button
aButton->setText(QString ("ON") );
aLabel->setText("some text");
aLabel->show();
}
but the label is not shown.. does not appear on screen. i know the if statement is run because the setOn call works properly.
any ideas?
nass

wysota
18th September 2006, 14:16
What is aLabel? What is its parent? Are you using Designer or do you invoke this init() method manually? Could you verify that the method is run by placing some qDebug statement in it?

nass
18th September 2006, 14:42
scratch that... really stupid reason, was calling hide() somewhere later on in init()..