Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to serialize and save a qtabwidget object in qt
Forum Updated to NodeBB v4.3 + New Features

how to serialize and save a qtabwidget object in qt

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 413 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sachinrd
    wrote on last edited by
    #1

    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

    JonBJ 1 Reply Last reply
    0
    • S sachinrd

      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

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @sachinrd
      You cannot, and should not, serialize QWidgets. 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.

      S 1 Reply Last reply
      3
      • JonBJ JonB

        @sachinrd
        You cannot, and should not, serialize QWidgets. 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.

        S Offline
        S Offline
        sachinrd
        wrote on last edited by
        #3

        @JonB got it . Thanks you so much.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved