beginQT
17th October 2011, 13:23
Hello,
I have an requirement in the project to read XML config file which consists of some UI window dimensions and few other information related to the Application. Example:
<Display>
<add key="Window_Width" value="800" />
<add key="Window_Height" value="600" />
</Display>
Its basically an Key Value pair config file, I need to read this values associated with the keys and need to update the window properties accordingly.
I have seen some QT classes like Qsetting and QXMLStreamReader which doesn't look like helps me reading this XML config file.
Could you please suggest me how to read and which classes to use, and any Code Examples also would be of great help.
Thanks in Advance!
I have an requirement in the project to read XML config file which consists of some UI window dimensions and few other information related to the Application. Example:
<Display>
<add key="Window_Width" value="800" />
<add key="Window_Height" value="600" />
</Display>
Its basically an Key Value pair config file, I need to read this values associated with the keys and need to update the window properties accordingly.
I have seen some QT classes like Qsetting and QXMLStreamReader which doesn't look like helps me reading this XML config file.
Could you please suggest me how to read and which classes to use, and any Code Examples also would be of great help.
Thanks in Advance!