坚持QtQML,坚持移动互联网

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

toby520

将QtCoding进行到底,做Qt的宠儿

  • 89

    关注

  • 164

    粉丝

  • 3577

    访客

  • 等级:精灵王
  • 身份:论坛版主
  • 总积分:1261
  • 男,1986-11-17

最后登录:2024-04-19

更多资料

日志

2019-06-25 14:30

复制代码long __stdcall ExceptionCatcher(_EXCEPTION_POINTERS* excp)
{
QDateTime time = QDateTime::currentDateTime();
QString strPath = ".\\" + time.toString("yyyy-MM-dd_hh-mm-ss_") + "dumpfile.dmp";
HANDLE hFile = ::CreateFile(strPath.toStdWString().c_str(), GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
if (hFile != INVALID_HANDLE_VALUE)
{
MINIDUMP_EXCEPTION_INFORMATION einfo;
einfo.ThreadId = ::GetCurrentThreadId();
einfo.ExceptionP ..

阅读全文»分类:默认分类|回复:5|浏览:796
2019-03-06 16:33

复制代码Rectangle {
id: relay
//如何模仿Qt当中的信号槽的写法
signal messageReceived(string person, string notice)

Component.onCompleted: {
relay.messageReceived.connect(sendToPost)
relay.messageReceived.connect(sendToTelegraph)
relay.messageReceived.connect(sendToEmail)
relay.messageReceived("Tom", "Happy Birthday")
}

function sendToPost(person, notice) {
console.log("Sending to post: " + person + ", " + notice)
}
function sendToTelegraph(pe ..

阅读全文»分类:默认分类|回复:0|浏览:799
2019-01-22 11:32

解决方案:
hello guys , finally iam able to build Qt after making two blank files named
1.) .qmake.stash
2.) .qmake.super
in build directory. So the problem is happening due to not creating this two files in the configuring step. I don't know why configuring script is behaving like this.


在configure同目录新建以上2个空白文件即可消除


链接最底部找答案

阅读全文»分类:默认分类|回复:0|浏览:2180
2019-01-17 09:27

静态编译Qt5.12.1 (为了Qt Installer Framework静态编译)
复制代码configure -prefix "D:\Qt\Qt5.12.1\5.12.1\static" -release -static -static-runtime -accessibility -opengl -no-icu -no-sql-sqlite -no-qml-debug -nomake examples -nomake tests -skip qtactiveqt -skip qtlocation -skip qtmultimedia -skip qtserialport -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtwebsockets -skip qtxmlpatterns -skip qt3d
其中省略了很多模块 因为IFW框架不需要 以最快的速度编译出来

阅读全文»分类:默认分类|回复:0|浏览:792
2019-01-16 10:11

1.在计算机上安装python库和perl库(因为后续的静态编译需要用到这两种语言),可以在命令行敲击“python”和“perl -v”检查是否安装成功。
2.修改msvc-desktop.conf 文件(D:\ProgramFiles\Qt\Qt5.10.1\5.10.1\Src\qtbase\mkspecs\common\msvc-desktop.conf)。
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_OPTIMIZE -MD
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MD
QMAKE_CFLAGS_DEBUG = -Zi -MDd
改为
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_OPTIMIZE -MT
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_ ..

阅读全文»分类:默认分类|回复:0|浏览:799
2019-01-11 14:55

Qt Mac发布 (复杂多依赖库 多插件的项目发布)
1.若是你的xx.app 只依赖Qt的库 很简单 使用macdeployqt 发布即可
2.若是你的xx.app 既依赖Qt库 又依赖自定义的库 那么你得使用install_name_tool -change 去修改依赖的路径
3.若是你的xx.app的依赖库有相互依赖的话 那么则更加复杂 每个库 都需要修改它依赖库的路径
4.若是有自定义的插件 则更加费劲 需要把插件的依赖库也按照3的步骤进行修改
5.若是有自定义的数据库之类的插件 那么则需要重复3的步骤
总之 非常复杂 我的项目就是全部情形都存在,费力不少

阅读全文»分类:默认分类|回复:1|浏览:683
2018-12-07 11:45

查找QMessagBox已知的button 然后重新设置为中文即可
丢代码:
复制代码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 ..

阅读全文»分类:默认分类|回复:0|浏览:732
2018-08-30 11:42

继承自QLineEdit,重写绘制
代码如下:
复制代码#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 ..

阅读全文»分类:默认分类|回复:0|浏览:781
2018-05-31 14:12

# 关注数字加密货币 关注DDN
* 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 ..

阅读全文»分类:默认分类|回复:0|浏览:908
2016-04-23 21:51

给大家一个福利 https://github.com/qmlweb/qmlweb 使用qml写web

阅读全文»分类:默认分类|回复:3|浏览:1574

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