[英]How to detect screen resolution in qt?
I set resolution of frame buffer in Intel platform using ioctl methods of Linux kernel. 我使用Linux内核的ioctl方法在Intel平台中设置帧缓冲区的分辨率。 I able to set this resolution successfully (verify with again get this parameters) but didn't get in qt.
我能够成功设置此分辨率(再次验证以获取此参数),但没有进入qt。 When I check desktop geometry it was get which I set on boot (1920*1024) and also not getting resizeevent().
当我检查桌面几何形状时,得到的是我在启动时设置的(1920 * 1024),也没有得到resizeevent()。 Can somebody say where am lacking .... ?
有人可以说缺少的地方吗?
Try this: 尝试这个:
QDesktopWidget widget;
QRect mainScreenSize = widget.availableGeometry(widget.primaryScreen());
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.