Hello guys.
I want to disable a toolbar button sometimes. I mean toolbar button is unclickable and visible. I look for the internet but I cant find the solution.
This code crush my program.
filterAction->setEnabled(false);
createActions()
filterAction = new QAction(tr("&Filter Data"), this);
filterAction->setIcon(QIcon("filter.ico"));
connect(filterAction, SIGNAL(triggered()), this, SLOT(filterData()));
...
createToolbars()
QToolBar *toolbar;
toolbar = addToolBar(tr("Processes"));
toolbar->addAction(filterAction);
...
↧