[Interest] What is the correct way of removing UI elements with code ?

Bo Thorsen bo at fioniasoftware.dk
Wed Oct 10 17:10:38 CEST 2012


Hi Patryk,

button->hide();
button->disconnect();

Bo.

Den 10-10-2012 17:05, Patryk Ma?ek skrev:
> Hello,
>
> I have just encountered a problem, where I do not need a certain UI 
> element e.g. /QPushButton/ and I would like to remove it but since I 
> have connected it with several slots (e.g. /clicked(), 
> released()/ etc. ) I now have several references of this button in my 
> code.
>
> How can I remove all of this efficiently ? Do I have to remove it all 
> manually ?
>
>
>
> kind regards,
> Patryk Ma?ek
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


-- 
Bo Thorsen.
Fionia Software - Qt experts for hire.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121010/885f4ebe/attachment.html>


More information about the Interest mailing list