日志
-
2019-06-25 14:30
-
复制代码long __stdcall ExceptionCatcher(_EXCEPTION_POINTERS* excp)
阅读全文»分类:默认分类|回复:5|浏览:796
{
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 ..
-
2019-03-06 16:33
-
复制代码Rectangle {
阅读全文»分类:默认分类|回复:0|浏览:799
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 ..
-
2019-01-22 11:32
-
解决方案:
阅读全文»分类:默认分类|回复:0|浏览:2180
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个空白文件即可消除
链接最底部找答案
-
2019-01-17 09:27
-
静态编译Qt5.12.1 (为了Qt Installer Framework静态编译)
阅读全文»分类:默认分类|回复:0|浏览:792
复制代码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框架不需要 以最快的速度编译出来
-
2019-01-16 10:11
-
1.在计算机上安装python库和perl库(因为后续的静态编译需要用到这两种语言),可以在命令行敲击“python”和“perl -v”检查是否安装成功。
阅读全文»分类:默认分类|回复:0|浏览:799
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_ ..
-
2019-01-11 14:55
-
Qt Mac发布 (复杂多依赖库 多插件的项目发布)
阅读全文»分类:默认分类|回复:1|浏览:683
1.若是你的xx.app 只依赖Qt的库 很简单 使用macdeployqt 发布即可
2.若是你的xx.app 既依赖Qt库 又依赖自定义的库 那么你得使用install_name_tool -change 去修改依赖的路径
3.若是你的xx.app的依赖库有相互依赖的话 那么则更加复杂 每个库 都需要修改它依赖库的路径
4.若是有自定义的插件 则更加费劲 需要把插件的依赖库也按照3的步骤进行修改
5.若是有自定义的数据库之类的插件 那么则需要重复3的步骤
总之 非常复杂 我的项目就是全部情形都存在,费力不少
-
2018-12-07 11:45
-
查找QMessagBox已知的button 然后重新设置为中文即可
阅读全文»分类:默认分类|回复:0|浏览:732
丢代码:
复制代码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|浏览:781
代码如下:
复制代码#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|浏览:908
* 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 ..