Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Parsing custom config files



  • Hi all,

    This isn't per-say a specific QT question, but hey ho. I have a custom configuration file that looks something like this:

    @[tag]
    #comment
    [tag]
    [tag /]
    [/tag]
    [/tag]
    @

    An I was wondering if any one had any ideas on how I could turn this into a qAbstractTree.



  • Why create a custom config file? Why not use QSettings? It's pretty good at creating config files and you don't have to worry about parsing them.


Log in to reply