My project is to simulate a "create newtorks" application like PacketTracer and i want to be able to save the status of the project, so after closing and re-running the app, everything is still there if the user wants to. I have used QSetting where I have a SaveSettings() and a LoadSettings() called from button's clicked slot. I got stucked here: I have a QList switch_class named switch_List and I want to do something like that: in the Save Settings():
QSettings setting("myorganization","blabla");
setting.setValue("list_of_switch_objects",switch_List);//cannot convert from
// QList<switch_list> to const QVariant .
Any suggestions would be appreciated !