Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Toolbar's Action Disable Problem

$
0
0
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); ...

Viewing all articles
Browse latest Browse all 18427

Trending Articles