我大概在說明一下
我的程式有5個SLOTS
void NewForm::A()
{
......程式
}
void NewForm::B()
{
......程式
}
void NewForm::C()
{
......程式
}
void NewForm::D()
{
......程式
}
void NewForm::E()
{
......程式
}
我不知道這樣寫對不掉
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout), this, SLOT(A));
connect(timer, SIGNAL(timeout), this, SLOT(B));
connect(timer, SIGNAL(timeout), this, SLOT(C));
connect(timer, SIGNAL(timeout), this, SLOT(D));
connect(timer, SIGNAL(timeout), this, SLOT(E));
timer->start(1000);
我把這段放在
NewForm::NewForm( QWidget* parent, const char* name, WFlags fl)
:NewBaseForm(parent, name, fl)
這裡邊.....
不知道要怎麼連續及重複的呼叫
而且要我點擊圖形介面的時候自動執行
因為之前用5個按鈕好解決
但是這次要把所有的按鈕都消掉....
讓圖形介面自動運行
拜託高手給個方向吧
感激不盡^^