摘要: setWindowFlags http://blog.chinaunix.net/uid 23500957 id 3876399.html move()方法,的作用是设置QWidget部件的pos坐标的。即设置左上角的坐标。通过设置左上角的坐标,来达到移动窗口的目的。 QPixmap 类代表图像 h 阅读全文
posted @ 2017-03-09 10:44 itholiday 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 在Qt中提供了QDesktopWidget类,提供屏幕的有关信息. 可以这么作: QDesktopWidget d=QApplication::desktop(); int width=d widht(); //屏幕的宽度 int height=d height(); //屏幕的高度 或者简写如下: 阅读全文
posted @ 2017-03-09 10:15 itholiday 阅读(1361) 评论(0) 推荐(0) 编辑