Generate .ui file from QWidget
-
Hi Guys...
I'm developing a software solution where I have 3 application: server, client and implementation tool
the implementation tool is our main application where we define de behaviour of our system, after that, we send this behaviour to our server, and the client use it.
for that reason, we need to define each form used in the client side, send it to our server and after that, download it and put it on the client.
We are thinking to use QUiLoader class to make it, but our problem is that this class need a .ui file. For that, we need to send the .ui file to our server.
my question is... ¿how can I get a .ui file from a QWidget object? ¿can I do that?
best regards
Freddy
-
Hi,
So your implementation tool would be some kind of Qt Designer ?
-
yeap... something like qt designer, but I don't need all widgets.. something like that
regard
-
I think that Qt Designer go down over each component starting from a root Widget, take its properties and after that, put them on the xml file (the .ui file)... and the reverse process to load each .ui file. It's a tree... at less is how I would do this.
Thank's for your answer Andre... I'm going to implement this my self. I just asked because I don't wanna make something that Qt solve it...
Thank's to everyone
-
@freddy311082 I think so, I don't wanna make something that Qt solve it.
Until know, we don't have any solution for this from Qt.
I hope they will supply an function to do this soon.
-
@VoLinhTruc said in Generate .ui file from QWidget:
hope they will supply an function to do this soon.
Why? What's a use-case outside Qt-Designer? And Qt is open-source - feel free to provide a patch for it if you really need it.