how to serialize and save a qtabwidget object in qt
-
Hello,
Im a beginner to qt and need to know if there is a way where i can store a complete qtabwidget object to a file and restore it. The qtabwidget contains multiple tab widgets with views with some user changes on it . Pls help if there is a way . Thanks -
Hello,
Im a beginner to qt and need to know if there is a way where i can store a complete qtabwidget object to a file and restore it. The qtabwidget contains multiple tab widgets with views with some user changes on it . Pls help if there is a way . Thanks@sachinrd
You cannot, and should not, serializeQWidgets. You should serialize those properties you have changed/need to restore, and recreate widgets from that information.If, say, you have some model(s) representing the data/changes, you can serialize that.
-
@sachinrd
You cannot, and should not, serializeQWidgets. You should serialize those properties you have changed/need to restore, and recreate widgets from that information.If, say, you have some model(s) representing the data/changes, you can serialize that.