2021年12月27日
摘要: 1、QPoint QWidget::mapToGlobal(const QPoint &pos) const将小部件坐标转换为全局坐标。mapToGlobal(QPoint(0,0))可以得到小部件左上角像素的全局坐标。 2、QPoint QWidget::mapToParent(const QPo 阅读全文
posted @ 2021-12-27 09:48 深蓝火焰 阅读(3904) 评论(0) 推荐(0)
  2021年5月26日
摘要: 在程序的开发过程中,经常会需要进行文件的读写,Qt提供了两种读写文本文件的方法: 1、使用QFile 类的 IODevice 读写功能 2 、QFile 和 QTextStream 结合 使用QFile 类的 IODevice 读写 1)读文件 1 bool widget::readFile(con 阅读全文
posted @ 2021-05-26 22:12 深蓝火焰 阅读(720) 评论(0) 推荐(0)