qt - How to Remove a widget from a QToolBar? -


i'm building app interface qt @ moment. 1 question arises... have qtoolbar added qtoolbutton qtoolbar->addwidget method. problem want remove button later on.

how can achieve ?

there addwidget method nothing removewidget correspondence...

any idea ?

thanks lot in advance help.

miky mike

you have use removeaction. this:

qaction* myaction = mytoolbar -> addwidget (mywidget) ; ... mytoolbar -> removeaction (myaction) ; 

Comments