[Qt-interest] Dynamic Interface good practices
Brian Rep
brianrep.rep at gmail.com
Tue Feb 10 13:05:25 CET 2009
Hello
I'm am trying to create a dynamic QT UI at run time.
With the helpful aid of this list I already know how to do it, that
is, read some XML file (i.e. a ui file) and load it at run time.
>From what I see, I need to generate my XML and nest it correctly in
order to make a valid "ui" file. For this I am going to make my own
class's like for example "myLabel" where's the constructor is going to
take 2 parameters, the label object name and the label value to the
user.
Then in some "get" method I will just return the related XML and nest
it with the other already generated XML.
I am no expert in XML, but I believe I know enough to use this
approach, but regarding to this I have some questions. like:
1 - Is this a good approach?
2 - If not, any advice?
3 - Related to the last question, is there already some way to get the
XML out from some qt object? (I tried to look for it but didn't find)
Thank you for any help
Kind regards
Brian
More information about the Qt-interest-old
mailing list