日志
-
2022-09-29 16:46
-
1. 首先编译openssl
阅读全文»分类:默认分类|回复:0|浏览:456
2. 其次编译curl,但是一些模块是不用在curl支持就屏蔽
./configure --disable-shared --without-zlib --disable-ldap --disable-ldaps --with-ssl=/Users/xxx/libs/build/openssl/openssl-OpenSSL_1_0_2l-build/x86_64 --prefix=/Users/xxx/libs/macos-build/out
最新macos系统 编译curl 涉及到http2 dn2 等配置库
支持http3的具体编译步骤:
https://xie.infoq.cn/article/6bba9dd34fb49b7adacb4aacd
-
2022-07-26 20:41
-
1. 专业投资者的必然选择:相较于Web方案,桌面客户端性能更好,大屏直观,更好的支持深度交互场景
阅读全文»分类:默认分类|回复:0|浏览:1004
2. 用户体验需求提升:传统投融资、金融交易软件界面设计老旧(如大智慧/同花顺),不符合现代审美和交互需求
3. 跨平台需求:国产操作系统平台、高端用户 MacOS需求(海外用户巨大)
4. 传统行业软件开发没落:传统MFC,Wxwidgets框架技术老旧,迭代巨慢,开发耗时耗力
5. Qt框架支持比较完善:插件化机制方便扩展、丰富的组件提升开发效率、跨平台机制灵活部署
-
2022-06-30 17:25
-
参考这个文章:
阅读全文»分类:默认分类|回复:0|浏览:721
https://successfulsoftware.net/2021/03/31/how-to-add-a-dark-theme-to-your-qt-application/
复制代码<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
...
<key>NSRequiresAquaSystemAppearance</key>
<true/>
</dict>
</plist>
-
2022-05-09 21:32
-
参考KDAB新鲜出炉的测评:
阅读全文»分类:默认分类|回复:0|浏览:830
https://www.kdab.com/say-no-to-qt-style-sheets/
这个文章的评论也很精彩,有不少惊喜
-
2022-05-07 15:26
-
1.主要是mac平台的库依赖区别于windows
阅读全文»分类:默认分类|回复:0|浏览:814
故在编译库的时候,可以提前指定rpath
复制代码QMAKE_LFLAGS += -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../,-rpath,@executable_path/../Frameworks
-
2022-04-13 15:23
-
复制代码mac平台:
阅读全文»分类:默认分类|回复:0|浏览:835
#include <AppKit/AppKit.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
NSView* view = (NSView*)w.effectiveWinId();
NSWindow* window = ;
window.titlebarAppearsTransparent = YES;
window.backgroundColor = ;
w.show();
return a.exec();
}windows平台临时办法:
https://github.com/envyen/qt-winDark
-
2022-04-11 16:55
-
简洁的使用
阅读全文»分类:默认分类|回复:1|浏览:652
复制代码QAction *button = ui->lineEdit->findChild<QAction *>("_q_qlineeditclearaction", Qt::FindDirectChildrenOnly);
if(button){
QCommonStyle style;
QIcon icon = style.standardIcon(QStyle::SP_ComputerIcon);
button->setIcon( icon );
}
或者
QList<QAction *> allPButtons = ui->lineEdit->findChildren<QAction *>();
foreach (QAction *var, allPButtons) {
if( !var->objectName().isEmpty()){
QCommonStyle style;
QIcon icon = styl ..
-
2021-09-13 16:43
-
大部分情况下Qt的x86应用程序可以运行于M1的 Rosetta之上,但是当我们基于Qt的应用程序依赖仅仅支持Arm64架构的库时就无法链接通过了.当前时间点为2021年8月份Qt尚未提供支持M1的免费发布版本,Qt 6.2有一个Preview版本支持M1,但普通用户有使用期限,且Preview版本并不是稳定版用上去有风险.
阅读全文»分类:默认分类|回复:0|浏览:847
具体参考:
https://www.cnblogs.com/wqcwood/p/15138983.html
-
2020-09-28 14:16
-
Disable Scene Interaction
阅读全文»分类:默认分类|回复:0|浏览:33592
Event handling is responsible by a good part of the CPU usage by the QGraphicsView engine. At each mouse movement the view asks the scene for the items under the mouse, which calls the QGraphicsItem::shape() method to detect intersections. It happens even with disabled items. So, if you don't need your scene to interact with mouse events, you can set QGraphicsView::setIntenteractive(false). In my case, I had two modes in my tool (measurement and move/rotate) where t ..
-
2020-03-27 19:21
-
复制代码macx|ios: {
阅读全文»分类:默认分类|回复:1|浏览:1085
CONFIG += lib_bundle
# shared is default on OS X, static is default for iOS, since
# prior to iOS 8, only static libraries were permitted. So,
# we explicitly do shared
CONFIG += shared
FRAMEWORK_HEADERS.version = Versions
FRAMEWORK_HEADERS.files = $${HEADERS}
FRAMEWORK_HEADERS.path = Headers
QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
}