Wojtek1990
24th July 2010, 00:51
Hi.
I've searched a lot but I can't find answer how to do it... I've done by Qt Designer signal/slot which call window hide () function after click on OK button... but after opening this window again by code:
App *app = new App(this);
app->show();
QlineEdit object text is empty - don't save written by me text, is restored to default state (Qline object projected in QtDesigner as empty at start). What to do to always display text which I've writtem in this Qline object ?
1.
void App::on_OK_clicked()
{
(ui->message)->setText(oldMessage);
}
don't work.
2. slot/signal which make update () function on QLine when OK button pressed in Qt designer also ...
I've searched a lot but I can't find answer how to do it... I've done by Qt Designer signal/slot which call window hide () function after click on OK button... but after opening this window again by code:
App *app = new App(this);
app->show();
QlineEdit object text is empty - don't save written by me text, is restored to default state (Qline object projected in QtDesigner as empty at start). What to do to always display text which I've writtem in this Qline object ?
1.
void App::on_OK_clicked()
{
(ui->message)->setText(oldMessage);
}
don't work.
2. slot/signal which make update () function on QLine when OK button pressed in Qt designer also ...