Hi All
I've a tool button . i'm adding some action to that toolbutton. when i trigger that action i need some methode to b executed. i did like following.
header file
------------------
actionlist();
source file
-----------------------
ui->toolButton->addAction(action);
constructor()
{
connect(m_action,SIGNAL( triggered()),
this, SLOT(claamethode()));
}
void actionlist()
{
m_action
= new QAction(m_strTempName,ui
->toolButton_3
);
// assiging m_action here
ui->toolbutton->addaction(m_action);
}
header file
------------------
QAction *m_action;
actionlist();
source file
-----------------------
ui->toolButton->addAction(action);
constructor()
{
connect(m_action,SIGNAL( triggered()),
this, SLOT(claamethode()));
}
void actionlist()
{
m_action = new QAction(m_strTempName,ui->toolButton_3);
// assiging m_action here
ui->toolbutton->addaction(m_action);
}
To copy to clipboard, switch view to plain text mode
But connect methode is not working. how to solve this?
Bookmarks