PDA

View Full Version : Adding widgets after setupUi is called



nessup
26th December 2010, 01:24
Hey there,

I have a custom subclassed widget that I want to add to a window I created with Qt Designer. However, there doesn't seem to be a way to do that without creating a new layout and thereby replacing entirely the Qt Designer one. Does anyone know how I might go about doing this?

Thanks so much,
--Dany.

ChrisW67
26th December 2010, 03:50
You can access the existing layout(s) through the ui object that Designer created for you. Once you have that you can addWidget() or insertWidget() as needed.