• 4840阅读
  • 1回复

[提问]qml初级问题 [复制链接]

上一主题 下一主题
离线boycxd
 
只看楼主 倒序阅读 楼主  发表于: 2011-06-30
  1. import QtQuick 1.0
  2. Rectangle {
  3. width: animation.width; height: animation.height + 8
  4. AnimatedImage { id: animation; source: "animation.gif" }
  5. Rectangle {
  6. property int frames: animation.frameCount
  7. width: 4; height: 8
  8. x: (animation.width - width) * animation.currentFrame / frames
  9. y: animation.height
  10. color: "red"
  11. }
  12. }

上面的代码用qmlviewer.exe工具打开即关闭是为什么,类似qml怎么调试错误呢。


离线XChinux

只看该作者 1楼 发表于: 2011-06-30
楼主想问什么问题?
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个