天嵌 ARM开发社区

 找回密码
 注册
查看: 2262|回复: 1

Qlable问题

[复制链接]
涉柘 发表于 2012-11-28 22:19:55 | 显示全部楼层 |阅读模式
用QT4.5做界面,怎样用Qlable自适应显示图片啊,有做过的帮帮忙,给个完整的代码。
TQ-lkp 发表于 2012-11-29 09:07:10 | 显示全部楼层
最好的帮助就是QT的帮助文档:
scaledContents : bool

This property holds whether the label will scale its contents to fill all available space.

When enabled and the label shows a pixmap, it will scale the pixmap to fill the available space.

This property's default is false.

Access functions:

bool hasScaledContents () const
void setScaledContents ( bool )
回复

使用道具 举报

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

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-20 15:09 , Processed in 2.031160 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表