.....
connect(enDusukSatis, SIGNAL(triggered()), this, SLOT(test()));
w->toolButton()->addAction(enDusukSatis);
.....
void ProformaDelegate::test()
{
QString::fromUtf8("İşlemde bir hata oluştu \nLütfen tekrar deneyiniz \nveya \nSistem uzmanına başvurunuz"));
}
.....
QAction *enDusukSatis = new QAction(QString::fromUtf8("En DüşÃ¼k Satış Fiyatı"), w->toolButton());
connect(enDusukSatis, SIGNAL(triggered()), this, SLOT(test()));
w->toolButton()->addAction(enDusukSatis);
.....
void ProformaDelegate::test()
{
QMessageBox::warning(0, QString::fromUtf8("HATA"),
QString::fromUtf8("İşlemde bir hata oluştu \nLütfen tekrar deneyiniz \nveya \nSistem uzmanına başvurunuz"));
}
To copy to clipboard, switch view to plain text mode
But the signal doent work...
Bookmarks