找回密码
 立即注册
收起左侧

如何减少qt quick占用内存?

4
回复
8311
查看
[复制链接]

尚未签到

来源: 2015-12-1 09:33:51 显示全部楼层 |阅读模式
5Qter豆
使用qt quick变了了一个1024*600的窗口,跑在win7上。
DEBUG版占用了40多兆内存
release版占用了20多兆内存。

想请问下如何减少qt quick占用的内存,或者如何裁剪qt 的方案,谢谢。

回复

使用道具 举报

尚未签到

2015-12-2 15:26:00 显示全部楼层
这个问题我还真咨询过qt开发人员,他们说他们自己也没有很好的方法来减少qml的内存使用,毕竟是牺牲内存来换取别的性能提升
回复

使用道具 举报

尚未签到

2015-12-2 16:07:31 显示全部楼层
qml没办法,QT widget有办法裁剪吗?
回复

使用道具 举报

累计签到:5 天
连续签到:1 天
2016-1-28 10:19:16 显示全部楼层
Qt 是开源的,肯定可以裁剪。
回复

使用道具 举报

累计签到:11 天
连续签到:1 天
2016-5-24 21:44:50 显示全部楼层
Followings are the things I have done so far:-
    1. Avoided compilation of unnecessary components by using appropriate
configure options e.g. -no-webkit, -no-openssl -no-cups -no-largefile, etc
    2. Reduced code segment by using "-qconfig local" option during
configuration and using modified "qconfig-minimal.h" file
    3. Avoided using "The Qt Resource System"
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了