摘要:
打开对话框选择文件 二进制方式读取文件 转换成图像显示 【转载自】 std::ifstream以二进制方式读取图片文件,用Qt再将其转为图片(QImage::loadFromData()函数使用) - ypy9323的博客 - CSDN博客 https://blog.csdn.net/ypy9323 阅读全文
posted @ 2019-04-30 16:40
ostartech
阅读(7552)
评论(0)
推荐(0)
摘要:
toLatin1、toLocal8Bit都是QString转QByteArray的方法,Latin1代表ASCII,Local8Bit代表unicode。 const char* 指向字符常量的指针 const char * ss= "xxxxxx"; // 这个表示的是指针指向的内容不可修改cha 阅读全文
posted @ 2019-04-30 16:36
ostartech
阅读(12362)
评论(0)
推荐(0)

浙公网安备 33010602011771号