zhengtianzuo的个人主页

http://www.qtcn.org/bbs/u/185045  [收藏] [复制]

zhengtianzuo

  • 0

    关注

  • 43

    粉丝

  • 328

    访客

  • 等级:侠客
  • 总积分:147
  • 男,1912-01-01

最后登录:2024-03-20

更多资料

新鲜事

zhengtianzuo
qml中使用Qt.fontFamilies()可以返回字体的列表, 我们用一个ListView显示出来 ``` ListView{ id: comb anchors.fill: parent mode ..
转发  |  收藏  |  评论
2017-10-28 [来自版块 - Qt代码秀]
zhengtianzuo
使用Qml的Canvas来画圆形 ``` onPaint: { var ctx = getContext("2d") ctx.clearRect(0,0,width,height) ctx.beginPa ..
转发  |  收藏  |  评论
2017-10-28 [来自版块 - Qt代码秀]
zhengtianzuo
程序打包的时候会用到将Zip包进行切割, 然后将切割后的文件块加入到qrc中进行编译 ``` QFile infile(strZipFile); if (!infile.ope ..
转发  |  收藏  |  评论
2017-10-26 [来自版块 - Qt代码秀]
zhengtianzuo
准备好一个图标 ico文件 新建文件名为VersionInfo.rc 加入图标信息 ``` IDI_ICON1 ICON DISCARDABLE "logo.ico" ``` 加 ..
转发  |  收藏  |  评论
2017-10-21 [来自版块 - Qt代码秀]
zhengtianzuo
使用状态来控制开关显示的样式 ``` Rectangle { id: rect width: parent.width * 0.6 radius: parent.radius color: rect.state ..
转发  |  收藏  |  评论
2017-10-20 [来自版块 - Qt代码秀]
zhengtianzuo
``` TextEdit { id: textEdit text: "" font.pointSize: 14 height: contentHeight width: frame.width - vbar.widt ..
转发  |  收藏  |  评论
2017-10-20 [来自版块 - Qt代码秀]
zhengtianzuo
在TextEdit中增加DropArea ``` TextEdit{ id: textEdit height: 300 width: parent.width DropArea{ anchors.fill: parent on ..
转发  |  收藏  |  评论
2017-10-20 [来自版块 - Qt代码秀]
zhengtianzuo
使用QtQuick的MVC模式 新建c++类继承于QAbstractTableModel, 并实现几个重要方法: CPP中: ``` class QmlTableViewModel : public QAb ..
转发  |  收藏  |  评论
2017-10-19 [来自版块 - Qt代码秀]
zhengtianzuo
footer加上TabBar即可实现底部导航 ``` footer: TabBar { id: bar height: 48 width: parent.width currentIndex: 0 ListModel ..
转发  |  收藏  |  评论
2017-10-19 [来自版块 - Qt代码秀]
zhengtianzuo
``` Rectangle { anchors.fill: parent color: "#AAAAAA"; opacity: bMenuShown ? 1 : 0 Behavior on opacity { Num ..
转发  |  收藏  |  评论
2017-10-18 [来自版块 - Qt代码秀]
zhengtianzuo
``` TextMetrics { id: textMetrics elide: Text.ElideRight elideWidth: textField.width - 12 text: qsTr("123这是一段文 ..
转发  |  收藏  |  评论
2017-10-18 [来自版块 - Qt代码秀]
zhengtianzuo
右侧信息弹窗使用PropertyAnimation来控制窗体的opacity透明度和Y坐标 就可以实现弹窗效果了 ``` PropertyAnimation{ id: hideAnima ..
转发  |  收藏  |  评论
2017-10-18 [来自版块 - Qt代码秀]
zhengtianzuo
一个向右的箭头, 点击顺时针旋转90°, 再次点击逆时针旋转90° ``` Image {         id: i ..
转发  |  收藏  |  评论
2017-10-18 [来自版块 - Qt代码秀]
zhengtianzuo
一个向右的箭头, 点击顺时针旋转90°, 再次点击逆时针旋转90° ``` Image { id: image height: 24 width: 24 anchors.centerIn: ..
转发  |  收藏  |  评论
2017-10-18 [来自版块 - Qt 作品展]
zhengtianzuo
使用QtGraphicalEffects中的OpacityMask效果: ``` Item { width: 96 height: 96 anchors.centerIn: parent Image { id: sourcei ..
转发  |  收藏  |  评论
2017-10-18 [来自版块 - Qt代码秀]
zhengtianzuo
主要是对菜单项的一个自定义: ``` MenuItem { id: menuItem1 anchors.left: parent.left anchors.leftMargin: 6 text: qsTr(&q ..
转发  |  收藏  |  评论
2017-10-17 [来自版块 - Qt代码秀]
zhengtianzuo
创建一个带Qml窗体的动态库, 接口文件如下: ``` #include <QQmlApplicationEngine>#include <QtCore/qglobal.h> #if d ..
转发  |  收藏  |  评论
2017-10-17 [来自版块 - Qt代码秀]
zhengtianzuo
大家都知道通过Q_INVOKABLE可以让qml直接访问c++类的接口函数. ``` void outputMessage(QtMsgType type, const QMessageLogContext & ..
转发  |  收藏  |  评论
2017-10-16 [来自版块 - Qt代码秀]
zhengtianzuo
关于 QQuickImageProvider 官方的描述 The QQuickImageProvider class provides an interface for supporting pixmaps and threaded i ..
转发  |  收藏  |  评论
2017-10-14 [来自版块 - Qt代码秀]
zhengtianzuo
``` Text { anchors.centerIn: parent text: '<html></style><a href="http://www.baidu.com"> ..
转发  |  收藏  |  评论
2017-10-14 [来自版块 - Qt代码秀]

Powered by phpwind v8.7 Certificate Copyright Time now is:04-24 20:58
©2005-2016 QTCN开发网 版权所有 Gzip disabled

-->