坚持QtQML,坚持移动互联网

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

toby520

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

  • 90

    关注

  • 178

    粉丝

  • 3608

    访客

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

最后登录:2025-12-08

更多资料

日志

2022-10-20 13:38

Without further ado, these are the step-by-step value area calculation:
Take the total buy and sell volume within a trading day and multiply it by 0.7 to determine 70% of the total volume.Record the greatest volume block aka the point of control (POC).Add the total volume of the first two blocks above the POC.Add the total volume of the first two blocks below the POC.Add to the POC the total volume, which is the greatest between the two volumes found at points 3 and 4.Repeat steps 3 and 4 adding ..

阅读全文»分类:默认分类|回复:0|浏览:2202
2022-09-29 16:46

1. 首先编译openssl
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

阅读全文»分类:默认分类|回复:0|浏览:668
2022-07-26 20:41

1. 专业投资者的必然选择:相较于Web方案,桌面客户端性能更好,大屏直观,更好的支持深度交互场景
2. 用户体验需求提升:传统投融资、金融交易软件界面设计老旧(如大智慧/同花顺),不符合现代审美和交互需求
3. 跨平台需求:国产操作系统平台、高端用户 MacOS需求(海外用户巨大)
4. 传统行业软件开发没落:传统MFC,Wxwidgets框架技术老旧,迭代巨慢,开发耗时耗力
5. Qt框架支持比较完善:插件化机制方便扩展、丰富的组件提升开发效率、跨平台机制灵活部署

阅读全文»分类:默认分类|回复:0|浏览:1243
2022-06-30 17:25

参考这个文章:

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>

阅读全文»分类:默认分类|回复:0|浏览:928
2022-05-09 21:32

参考KDAB新鲜出炉的测评:

https://www.kdab.com/say-no-to-qt-style-sheets/

这个文章的评论也很精彩,有不少惊喜

阅读全文»分类:默认分类|回复:0|浏览:998
2022-05-07 15:26

1.主要是mac平台的库依赖区别于windows
故在编译库的时候,可以提前指定rpath
复制代码QMAKE_LFLAGS += -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../,-rpath,@executable_path/../Frameworks

阅读全文»分类:默认分类|回复:0|浏览:1094
2022-04-13 15:23

复制代码mac平台:
#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

阅读全文»分类:默认分类|回复:0|浏览:1022
2022-04-11 16:55

简洁的使用

复制代码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 ..

阅读全文»分类:默认分类|回复:1|浏览:779
2021-09-13 16:43

大部分情况下Qt的x86应用程序可以运行于M1的 Rosetta之上,但是当我们基于Qt的应用程序依赖仅仅支持Arm64架构的库时就无法链接通过了.当前时间点为2021年8月份Qt尚未提供支持M1的免费发布版本,Qt 6.2有一个Preview版本支持M1,但普通用户有使用期限,且Preview版本并不是稳定版用上去有风险.

具体参考:
https://www.cnblogs.com/wqcwood/p/15138983.html

阅读全文»分类:默认分类|回复:0|浏览:955
2020-09-28 14:16

Disable Scene Interaction
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 ..

阅读全文»分类:默认分类|回复:0|浏览:84649

Powered by phpwind v8.7 Certificate Copyright Time now is:12-09 15:30
©2005-2016 QTCN开发网 版权所有 Gzip disabled