soontobeaveteran
soontobeaveteran

Reputation: 3

Retrieving the Qwidget from a ui file

I have a group project and I was wondering if I could just "convert" their ui files (stock.ui) into Qwidgets and use the function Qwidget::insertwidget() to add it to my StackedWidgets

Upvotes: 0

Views: 264

Answers (1)

Gabriella Giordano
Gabriella Giordano

Reputation: 1238

Use the QUiLoader class: http://doc.qt.io/qt-5/quiloader.html#details

I also recommend reading here to learn more on Ui files management.

Upvotes: 1

Related Questions