Qt - 序列化/去除文本和图片 [英] Qt - serialize/deserialaize text and picture

查看:158
本文介绍了Qt - 序列化/去除文本和图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用一个字段(一种QTextEdit),这是存储图片和文本的能力(就像MS Word正在做的那样),它会对图片+文本数据进行序列化和去图像处理。是否有任何Qt Widget允许我们同时使用图片和文本进行操作,它设置/获取可序列化类型的函数?在其他方面,我想知道是否存在任何可以存储图片+文本的Qt小部件,并且具有获取类型的函数,该函数返回该小部件可编辑区域的内容,这是可以使用QDataStream序列化的类型。 / p>

I want to use a field (kind of QTextEdit), which is capabale of storing picture and text (like MS Word is doing) and it serializes and deserialaizes picture+text data. Is there any Qt Widget that allows us to manipulate with picture and text simultaniously and it has set/get functions which operate with serializable type? In othger words, I want to know if there exsists any Qt widget that can store picture+text and has "get" types of function that returns the content of that widgets editable area, which is a Type that could be serialized with QDataStream.

推荐答案

看到这个:

如何在QTextEdit中序列化和反序列化富文本?

这篇关于Qt - 序列化/去除文本和图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆