Borrimoro
Borrimoro

Reputation: 557

Create ui file for Qt Designer from .cpp and .h

I have project that have UI part written in Qt. It have form files and I clearly see that they were generated with Qt Designer, but .ui file is absent. Is it possible to generate .ui file from that .cpp and .h files to have possibility modify this form in Qt Designer?

Upvotes: 0

Views: 748

Answers (2)

user2694518
user2694518

Reputation: 11

Have a look at QFormBuilder::save()

"save() handles saving of widget details in UI format to arbitrary QIODevices."

Upvotes: 0

Greenflow
Greenflow

Reputation: 3989

No, this is absolutely impossible. Not enough information in .cpp and .h files to generate .ui files.

Upvotes: 3

Related Questions