layout - Syncronize ui file with cpp on Qt -


i writing simple app using qt. project contains ui file because easier change layouts.

well, edit cpp file add new. ui file not show it.

for example, in cpp use

qwidget *logo = new qwidget(this);     logo->setstylesheet("background-color: red");     logo->setgeometry(qrect(50,50,500,110)); 

but when open ui file within design mode, new red rectangle not there.

how update layout on ui file?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -