Is it possible to save the content of a QtableWidget, in addition to writing the contents of the cells one by one?

    1 answer 1

    Are you taking data from some model? If so, then try to translate the model into QVariant , then you can translate, for example, into QByteArray and write to a file.

    Surely there are ways easier, but this is the first thing that came to mind.

    • As an option. I'll try. But, as I already understood, saving the contents in almost one action (such as with QTextEdit ) will fail. - Alexey Kotov
    • Well, in QTableWidget, not one object is stored, unlike QTextEdit. - AlexDenisov