If QTimer emitted a signal with a QLineEdit* paran, then (and only then)
wrong
QTimer::singleShot(3000,
this,
SLOT(diagrafi
(grami2
)));
QTimer::singleShot(3000, this, SLOT(diagrafi(grami2 )));
To copy to clipboard, switch view to plain text mode
right (not really right, because of big if)
QTimer::singleShot(3000, this, SLOT(diagrafi(QLineEdit*)));
To copy to clipboard, switch view to plain text mode
Alas, it does not emit a signal with such a param.
Therefore:
right:
QTimer::singleShot(3000,
this,
SLOT(diagrafi
()));
void kentriko::anixe()
{
grami2
= new QLineEdit(this);
// provide a member variable grami2 grami2
->setObjectName
(QString::fromUtf8("grami2"));
grami2
->setGeometry
(QRect(60,
80,
180,
25));
grami2->show();
QTimer::singleShot(3000,
this,
SLOT(diagrafi
()));
ui.label->setText("kalispera");
}
void kentriko::diagrafi()
{
grami2->hide();
}
QTimer::singleShot(3000, this, SLOT(diagrafi()));
void kentriko::anixe()
{
grami2 = new QLineEdit(this); // provide a member variable grami2
grami2->setObjectName(QString::fromUtf8("grami2"));
grami2->setGeometry(QRect(60, 80, 180, 25));
grami2->show();
QTimer::singleShot(3000, this, SLOT(diagrafi()));
ui.label->setText("kalispera");
}
void kentriko::diagrafi()
{
grami2->hide();
}
To copy to clipboard, switch view to plain text mode
HTH
Bookmarks