摘要:1、方法1 删除IDE的配置参数的保存文件夹QtProject,使得Qt Creator恢复出厂值。 详情见我的另一篇博客:https://blog.csdn.net/libaineu2004/article/details/38320731QtCreator的菜单->工具->选项,里面都是配置参数
阅读全文
摘要:windows实际分辨率, 1920x1080显示窗体w大小:800x600100缩放率:关闭Qt::AA_EnableHighDpiScalingui->pushButton->size() QSize(114, 30)"\\\\.\\DISPLAY1"devicePixelRatio 1geom
阅读全文
摘要:注意:border-width 后的数字有单位border-image 后的数字没有单位min-height 和 padding 不是必须的,这里用来细微的调节按钮的效果 Border-Image 原理
阅读全文
摘要:void Widget::keyPressEvent(QKeyEvent *event) { qDebug() << event->key() << "\t" << Qt::Key_Enter << "\t" << Qt::Key_Return; if( event->key() == Qt::Ke
阅读全文
摘要:Coordinate System The default coordinate system of a paint device has its origin at the top-left corner. The x values increase to the right and the y values increase downwards.
阅读全文
摘要:我遇到的问题是在QT5.7下Qt Creator可以的,但是装了Qt 5.13.2(5.14.0) 在Qt Creator下编译运行不行。 qDebug看下 qDebug() << QSslSocket::supportsSsl() << QSslSocket::sslLibraryBuildVersionString() << QSslSocket::sslLibraryVersionStr...
阅读全文
摘要:pro 增加 VERSION = 1.2.3.4 DEFINES += APP_VERSION=\\\"$$VERSION\\\" 应用程序中用 APP_VERSION 宏就可以获得版本号 https://amin-ahmadi.com/2016/09/26/how-to-get-current-app-version-in-qt/
阅读全文
摘要:简述 TODO: + 说明: 如果代码中有该标识,说明在标识处有功能代码待编写,待实现的功能在说明中会简略说明。 FIXME: + 说明: 如果代码中有该标识,说明标识处代码需要修正,甚至代码是错误的,不能工作,需要修复,如何修正会在说明中简略说明。 // TODO: something to do // BUG: ugly bug here // F...
阅读全文
摘要:void SetIEProxy(QString proxy) { QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", QSettings::NativeFormat); settings.setValue("Proxy...
阅读全文
摘要:windows10 qt5 mingw32编译cryptopp563 参考链接: http://www.qtcentre.org/threads/28809-Compiling-amp-using-Crypto-with-mingw-version-of-Qt Compiling & using Crypto++ with mingw version of Qt Hi pals! I p...
阅读全文
摘要:http://www.devbean.net/2011/11/qtcreator-plugin-develop-13/
阅读全文
摘要:TEMPLATE = app CONFIG -= qt
阅读全文
摘要:一般的qmake生成的Makefile是没有 make install的 方法: 在.pro中做文章 比如你要安装libEbookDataBase.so*到目录 /usr/local/lib .pro中加入 inst.files += libEbookDataBase.so* inst.path = /usr/local/lib INSTALLS += inst ...
阅读全文
摘要:复制npswf32.dll 到 C:\WINDOWS\system32\Macromed\Flash\ 代码加入: //! [1] QNetworkProxyFactory::setUseSystemConfiguration(true);// flash support QWebSettings::globalSettings()->setAttribute(QWebS...
阅读全文
摘要:http://doc.qt.nokia.com/4.7-snapshot/tutorials.html
阅读全文
摘要:qoject.cpp中的代码: static void queued_activate(QObject *sender, int signal, QObjectPrivate::Connection *c, void **argv) { if (!c->argumentTypes && c->argumentTypes != &DIRECT_CONNECTION_ONLY) {...
阅读全文
摘要:http://blog.csdn.net/dbzhang800/article/details/6540089 http://doc.qt.nokia.com/qq/qq16-dynamicqobject.html
阅读全文
摘要:http://qt-project.org/wiki/QThreads_general_usage QThreads General Usage Threads in an operating system are a very simple thing. Write a function, maybe bundle it with some data and push it onto ...
阅读全文
摘要:Threads and QObjects QThreadinheritsQObject. It emits signals to indicate that the thread started or finished executing, and provides a few slots as well. More interest...
阅读全文
摘要:QObject Class Reference void QObject::moveToThread ( QThread * targetThread ) Changes the thread affinity for this object and its children. The object cannot be moved if it has a parent. Event pr...
阅读全文