如何在qt应用程序中更改QWS_SIZE?
我们通常像这样导出qt嵌入环境变量:
export QWS_DISPLAY=[:]...[:]
export QWS_SIZE=800*600
export LD_LIBRARY_PATH=/usr/local/lib:$QTDIR/lib:$LD_LIBRARY_PATH
现在我希望QWS_SIZE将在我的应用程序中更改。换句话说,我希望Qt应用程序可以控制帧缓冲区大小。 QWSServer::Geometry 可以吗?我失败了。 感谢您的回复。
We usually export qt embedded environment variables like this:
export QWS_DISPLAY=[:]...[:]
export QWS_SIZE=800*600
export LD_LIBRARY_PATH=/usr/local/lib:$QTDIR/lib:$LD_LIBRARY_PATH
Now I hope QWS_SIZE will be changed in my application .In other words, I hope Qt application can control the framebuffer size . Can QWSServer::Geometry do it ? I failed .
Thanks for any replies.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
QWSServer 小部件与 QWidget 不同。一个主要的哲学差异是你对它们的控制程度不那么高。它们提供给您的应用程序并由环境控制。
所以你的问题的答案是:不。应用程序不控制帧缓冲区大小,设备可以控制。
QWSServer widgets are not like QWidgets. One major philosophical difference is that you don't control them nearly as much. They are supplied to your application and are controlled by the environment.
So the answer to your question is: no. The application doesn't control the framebuffer size, the device does.