Skip to content

Chinese

A forum for those speaking Chinese
723 Topics 1.8k Posts
Qt 6.11 is out! See what's new in the release blog
  • 欢迎大家来到Qt中文论坛

    Pinned
    87
    1 Votes
    87 Posts
    191k Views
    P
    嗨嗨,初来乍到请多指教。
  • 关于Qt生成的动态库,可以在其他编程语言调用嘛?

    Moved Unsolved
    2
    0 Votes
    2 Posts
    706 Views
    L
    QString之类的工具类,可以自己直接编译静态或者动态链接库使用。 QTimer的使用依赖于event loop和QCoreApplication实例,应该是能使用的 可以参考 https://github.com/qt/qtbase/blob/dev/src/tools/bootstrap/CMakeLists.txt
  • qml代码缩进问题

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    C
    貌似是老毛病 : https://qt-project.atlassian.net/browse/QTCREATORBUG-30463 可以被最新的Qt Creator 19确认,比如: Item { onXChanged: function() { console.log("Hello") } onXChanged: ()=> { console.log("Hello") } } 两种函数定义方法,使用builtin的code style(Preferences->Qt Quick->Code Style),写完之后Ctrl + I,结果就是这样。问题可能不是参数而是箭头函数本身。
  • 0 Votes
    3 Posts
    1k Views
    L
    交叉编译是指在开发机(host)上做交叉编译,然后把编译好的库和二进制应用程序复制到目标机(target)上运行的过程。
  • 支付问题

    Unsolved
    3
    0 Votes
    3 Posts
    709 Views
    L
    https://www.qt.io/contact-us/qt-offices Local Office - Shanghai China Room 3306-3307, 33F No.3 Hongqiao Road, Grand Gateway Tower 2 Xuhui District, Shanghai P.R.China, 200030 Sales inquiries +86 21 51748525 Administration inquiries tel. +86 21 51748525 fax +86 21 51748526 china@qt.io
  • 教育许可证更新失败

    Unsolved
    2
    0 Votes
    2 Posts
    453 Views
    L
    先查看一下许可证状态?https://account.qt.io/s/my-licenses
  • RK3588 xcb无法正常显示

    Unsolved
    3
    0 Votes
    3 Posts
    492 Views
    L
    xcb需要跑x11 window manager
  • 启动客户端项目断言失败

    Unsolved
    1
    0 Votes
    1 Posts
    646 Views
    No one has replied
  • QTcpSocket,What is the process of data reception like?

    Unsolved
    1
    0 Votes
    1 Posts
    390 Views
    No one has replied
  • 0 Votes
    1 Posts
    411 Views
    No one has replied
  • 为什么成员变量(非指针)初始化时,可以用指针赋值?

    Solved
    2
    0 Votes
    2 Posts
    763 Views
    B
    这不是赋值,是构造函数的参数啊,QTimer的构造函数是QTimer(QObject *parent = nullptr),你这样就把这个new出来的QTimer作为它的parent传给它的构造函数了,编译当然没问题,在运行时因为m_timer应该会早于它的parent被销毁所以也没有问题
  • 运行Qt Creatot 后,无响应,无法打开窗口

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    CalciferC
    尝试检查一下你的QtCreator.ini是否非常大,如果是,可以考虑备份后删除,重新打开QtCreator。
  • qt6.51开发安卓程序,构建apk创建模板,无法设置横屏

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    C
    @onetwothree 这个弹窗是正常的,它的意思是更新不到 CMakeLists.txt 文件上去,你需要自己更新 在你的主程序里面加 set_target_properties(MyApp PROPERTIES QT_ANDROID_PACKAGE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/android ) 名称和路径不要错,在修改就能看到效果
  • 使用QWebEngineView报错:js: Uncaught ReferenceError: getWebPath is not defined

    Unsolved
    1
    0 Votes
    1 Posts
    417 Views
    No one has replied
  • 为什么在线安装的时候会出现"未经授权"的错误?如何解决?

    Unsolved
    1
    0 Votes
    1 Posts
    513 Views
    No one has replied
  • qt中国区代理的联系方式?

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    L
    https://www.qt.io/contact-us/qt-offices Local Office - Shanghai China Room 3306-3307, 33F No.3 Hongqiao Road, Grand Gateway Tower 2 Xuhui District, Shanghai P.R.China, 200030 Sales inquiries +86 21 51748525 Administration inquiries tel. +86 21 51748525 fax +86 21 51748526 china@qt.io
  • 打开 Qt Creator 后,PowerShell 窗口会在短时间内反复弹出。

    Unsolved
    2
    0 Votes
    2 Posts
    6k Views
    H
    这是对应主题下的帖子
  • 基于 QML 的 windows 手写输入

    Unsolved
    1
    0 Votes
    1 Posts
    418 Views
    No one has replied
  • linux下Qt create 17.0.0和Qt 6.9.1无法build windows应用

    Unsolved
    2
    0 Votes
    2 Posts
    915 Views
    W
    试图自己创建windows build项但失败,找不到mingw对应的Qt 6.9.1库。 还发现compiler中的mingw项目告警:ABI:不是所有编译器都设置正确,但同时告警的gcc编译的linux应用正常,不知是否有影响。 [image: 2442b188-152a-4d9a-9c6a-f14f780dfc4e.png] [image: 2e5af089-26cc-48ea-a014-1a62991ba36e.png] [image: 955e250b-4a60-4951-ae93-266395cb3817.png] [image: c0685f8c-4700-4377-a2f6-b0be23b53e6e.png]
  • 使用QQuickItem显示高分辨率图像问题

    Unsolved
    1
    0 Votes
    1 Posts
    499 Views
    No one has replied