Results 1 to 2 of 2

Thread: Saving properties of a QObject based class

  1. #1
    Join Date
    Nov 2006
    Location
    Dresden, Germany
    Posts
    108
    Thanks
    9
    Thanked 12 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Saving properties of a QObject based class

    I want to save the properties of an object to an XML document and restore the properties later on. In a class that is derived from QWidget I created member functions that read and write my own member variables to an QDomDocument.

    However, I would also like to store all the remaining properties, like the widget font, the palette, the size etc. Are there some ready-made functions somewhere that take any QObject based class and dump it as XML?

    Related to that, how does the Qt designer actually create its ui files?

    Thanks for any pointers...
    Andreas

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Saving properties of a QObject based class

    Quote Originally Posted by ghorwin View Post
    Related to that, how does the Qt designer actually create its ui files?
    It has a UI writer class that handles that.

Similar Threads

  1. Sorting Tree items based on database properties
    By jnk5y in forum Qt Programming
    Replies: 3
    Last Post: 13th April 2006, 19:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.