日志
-
2018-12-07 11:45
-
查找QMessagBox已知的button 然后重新设置为中文即可
阅读全文»分类:默认分类|回复:0|浏览:1305
丢代码:
复制代码QMessageBox msgBox;
msgBox.setText("The document has been modified.");
msgBox.setInformativeText("Do you want to save your changes?");
msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
msgBox.setDefaultButton(QMessageBox::Save);
QAbstractButton *btn = msgBox.button(QMessageBox::Save);
qDebug()<<"-------"<<btn;
if(btn){
btn->setText(Q ..
-
2018-08-30 11:42
-
继承自QLineEdit,重写绘制
阅读全文»分类:默认分类|回复:0|浏览:1212
代码如下:
复制代码#ifndef CUSTOMLINEEDIT_H
#define CUSTOMLINEEDIT_H
#include <QObject>
#include <QLineEdit>
#include <QPainter>
#include <QDebug>
class CustomLineedit : public QLineEdit
{
Q_OBJECT
Q_PROPERTY(QColor placeholderColor READ customPlaceholderColor WRITE setCustomPlaceholderColor)
public:
explicit CustomLineedit(QWidget *parent = nullptr);
void setCustomPlaceholderText(const QString &text) {
this->mText = text;
update ..
-
2018-05-31 14:12
-
# 关注数字加密货币 关注DDN
阅读全文»分类:默认分类|回复:0|浏览:1542
* DDN社区: (http://ddn.link/)
# 基于QtQuick的DDN加密货币的区块浏览器客户端
!()
!()
!()
!()
!()
!()
!()
!()
* 可以浏览最近产生的区块
* 浏览交易记录
* 浏览节点信息
* 浏览所有钱包地址的信息
* 浏览委托人的信息
* 可切换皮肤
## 有问题反馈
在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流
* 邮件(373955953@qq.com)
* QQ: 373955953
* QQ群:312125701[多多指教Qt/QML社区]
* github: [@寒山-居士](https://github.com/toby20130333)
* (http://qtddui.b0.upaiyun.com/gi ..
-
2016-03-31 09:42
-
what means: QObject is an inaccessible base of myObject?
阅读全文»分类:默认分类|回复:0|浏览:2097
你肯定没有在继承QObject的时候 带上public关键字吧
-
2015-11-03 22:21
-
Requirement
阅读全文»分类:Qt|回复:4|浏览:2080
目前移动开发,使用二维码的需求越来越多,那么如何使用Qt来生成二维码呢?当然使用开源的qrencode来进行封装
有网友经常问到如何生成二维码,于是就开发了这样一个QML插件,可以直接在QML当中使用,该插件可以安装到QtSDk相应目录
QRCode Powered QML Module
Designing cool, interactive interfaces. DuoDuoZhijiao came up with a much better answer for QRencode: QML, a declarative language perfect for designing UIs (and much more). Here’s a sample of how QREncode Plugin For QML looks like:
复制代码 ..
-
2015-10-23 14:32
-
IOSWebView是什么?
阅读全文»分类:Qt|回复:5|浏览:2401
一个基于原生iOS的QtQuick移动平台的网页接入组件
有哪些功能?
方便加载html网页可以直接加入本地html文件可以加载网络url方便C++与JS进行交互实现了iOS的UIWebView与QQuickItem的完美结合实现了WebView与C++连接的一个桥梁(bridge)弥补了Qt在iOS开发下无法使用WebView的遗憾
有问题反馈
在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流
邮件(373955953#qq.com, 把#换成@)QQ: 39559539234QQ群:312125701github: @寒山-居士
感激
感谢以下的项目,排名不分先后
marcuswesting00dnight图表库
关 ..


