Quickly Testing Qt Desktop Applications With Approval Tests
Testing Qt Desktop Applications with Approval Tests Clare Macrae (She/her) clare@claremacrae.co.uk 16 September 2020 CppCon (Online)2 Audience: Developers testing Desktop GUIs, including Qt-based ions.html3 Contents •Introduction •Qt –Setting Up Testing –Error-prone Things –Approval Tests •Extras –Tools –Summary4 About Me • Scientific C++ and Qt developer since 1999 • My mission: Sustainable github.com/claremacrae/talks5 About… 5 Any Questions ?6 Typical Scenario • I've inherited some Qt GUI code • It's valuable • I need to add feature • Or fix bug • How can I ever break out of0 码力 | 77 页 | 6.96 MB | 5 月前3Visualize Time Enabled Data using ArcGIS Qt (C++) and Toolkit
Gela Malek Pour gmalekpour@esri.com Visualize Time Enabled Data using ArcGIS Qt (C++) and ToolkitAbout Esri • We build mapping technology that our customers use to solve the world’s most complex challenges slider - Start and end dates, time interval, etc. - Feature layer URLArcGIS Runtime for Qt - SDK • The Qt SDK allows you to build cross platform desktop and mobile apps • Incorporate features such sample we will be using the C++ SDKArcGIS Runtime Toolkit for Qt • Open-source project • Contains UI components and utilities to help simplify Qt app development • Can plug and play various UI pieces •0 码力 | 10 页 | 734.09 KB | 5 月前3C++高性能并行编程与优化 - 课件 - 16 现代 CMake 模块化项目管理指南
find_package(Qt5) 则是会去找名为 Qt5Config.cmake 的文件。 • 这些形如 包名 + Config.cmake 的文件,我称之为包配置文件。 • Qt5Config.cmake 是你安装 Qt5 时,随 libQt5Core.so 等实际的库文件,一起装到你的 系统中去的。以我的 Arch Linux 系统为例: • 包配置文件位于 /usr/lib/cmake/Qt5/Qt5Config 而是去找包配置文件(例如 Qt5Config.cmake ),这个配置文件里包含了包的具体信息, 包括动态库文件的位置,头文件的目录,链接时需要开启的编译选项等等。而且某些库都 具有多个子动态库,例如 Qt 就有 libQt5Core.so 、 libQt5Widgets.so 、 libQt5Network.so 。因此 CMake 要求所有第三方 库作者统一包装成一个 Qt5Config.cmake cmake 文件包含所有相关信息(类似于 nodejs 的 package.json ),比你单独的一个个去找动态库文件要灵活的多。 • 包配置文件由第三方库的作者( Qt 的开发团队)提供,在这个库安装时( Qt 的安装程序 或 apt install 等)会自动放到 /usr/lib/cmake/XXX/XXXConfig.cmake 这个路径(其中 XXX 是包名),供 CMake 用户找到并了解该包的具体信息。0 码力 | 56 页 | 6.87 MB | 1 年前3Krita 5.2 Manual
above. One of the more confusing things is seeing all the C++ classes that Krita uses, including the Qt classes that start with Q. But here is the beauty of SIP: it tries to make the translation from these instance()) Finally, in addition to the LibKis documentation, the Qt documentation, since Krita uses PyQt to expose nearly all of the Qt API to Python. You can build entire windows with buttons and forms forms this way, using the very same tools that Krita is using! You can read the Qt documentation [https://doc.qt.io/] and the PyQt documentation [https://www.riverbankcomputing.com/static/Docs/PyQt5/] for0 码力 | 1502 页 | 79.07 MB | 1 年前3C++高性能并行编程与优化 - 课件 - 11 现代 CMake 进阶指南
find_package(Qt5 REQUIRED) 出错了 原因: Qt5 具有多个组件,必须指定你需要哪些组件 find_package 生成的伪对象 (imported target) 都按照“包名 :: 组件名”的格式命名。 你可以在 find_package 中通过 COMPONENTS 选项,后面跟随一个列表表示需要用的组件。 测试一下能否找到 Qt 的头文件并编译通过 常见问题:小彭老师, 常见问题:小彭老师, Windows 上找不到 Qt5 包怎么办?我明明安装 了! 你是 Windows 系统,可能你安装了 Qt5 ,但是因为 Windows 系统的安装路径非常混乱, 没有固定的 /usr/lib 之类的默认路径可以搜索,所以出错了。 常见问题:小彭老师, Windows 上找不到 Qt5 包怎么办?我明明安装 了! • 假设你的 Qt5 安装在 C:\Qt\Qt5.14.2 ,则你去找找这个目录: ,则你去找找这个目录: • C:\Qt\Qt5.14.2\msvc2019_64\lib\cmake\ • 你会看到他里面有个 Qt5Config.cmake 对吧。现在,有四种方法让 CMake 找得到他。 • 第一种是设置 CMAKE_MODULE_PATH 变量,添加一下包含 Qt5Config.cmake 这个文 件的目录路径 C:\Qt\Qt5.14.2\msvc2019_64\lib\cmake0 码力 | 166 页 | 6.54 MB | 1 年前3Krita 5.2 브로셔
above. One of the more confusing things is seeing all the C++ classes that Krita uses, including the Qt classes that start with Q. But here is the beauty of SIP: it tries to make the translation from these instance()) Finally, in addition to the LibKis documentation, the Qt documentation, since Krita uses PyQt to expose nearly all of the Qt API to Python. You can build entire windows with buttons and forms forms this way, using the very same tools that Krita is using! You can read the Qt documentation [https://doc.qt.io/] and the PyQt documentation [https://www.riverbankcomputing.com/static/Docs/PyQt5/] for0 码力 | 1531 页 | 79.11 MB | 1 年前3Krita 4.x 官方文档中文版 2021-08-06A
,它返回的结果应该和该⻚ ⾮常相近。你可以研究⼀下前⾯例⼦使⽤过的功能: createDocument() 、activeWindow() 、action() 。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在⼀起会 让⼈觉得眼花缭乱。不过这正是 SIP ⼤展⾝⼿的地⽅:它会尽可能 把这些程序类翻译为简单易懂的 Python 格式。例如你可以看到 function filters() 返回⼀个 instance()) 最后,除了 LibKis ⽂档之外,你可能还要阅读 Qt ⽂档,因为 Krita 通过 PyQt 把 Qt API 的绝⼤多数功能与 Python 进⾏了对 接。这意味着你可以使⽤ Krita 本⾝也在使⽤的 Qt 功能来构建⼀套 带有按钮和输⼊框的窗⼝!你可以查阅 Qt ⽂档 [https://doc.qt.io/] 和 PyQt ⽂档 [https://www.riverbankcomputing X-Krita-Manual 此项为可选参数,它指向该插件配套的使⽤⼿册项⽬。它会被 显⽰在 Python 插件管理器中。 HTML 格式的⼿册将显⽰为富 ⽂本 [https://doc.qt.io/qt-5/richtext-html-subset.html] ,否则将显 ⽰为纯⽂本。 Name 插件在 Python 插件管理器中显⽰的名称。 Comment 插件在 Python 插件管理器中的描述。0 码力 | 1594 页 | 110.95 MB | 1 年前3Krita 5.2 官方文档中文版 2023-12-08A
,它返回的结果应该和该页非 常相近。你可以研究一下前面例子使用过的功能: createDocument()、activeWindow()、action()。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在一起会 让人觉得眼花缭乱。不过这正是 SIP 大展身手的地方:它会尽可能 把这些程序类翻译为简单易懂的 Python 格式。例如你可以看到 filters() 函数返回一个 QStringList instance()) 最后,除了 LibKis 文档之外,你可能还要阅读 Qt 文档,因为 Krita 通过 PyQt 把 Qt API 的绝大多数功能与 Python 进行了对 接。这意味着你可以使用 Krita 本身也在使用的 Qt 功能来构建一 套带有按钮和输入框的窗口!你可以查阅 Qt 文档 [https://doc.qt.io/] 和 PyQt 文档 [https://www.riverbankcomputing X-Krita-Manual 此项为可选参数,它指向该插件配套的使用手册项目。它会被 显示在 Python 插件管理器中。 HTML 格式的手册将显示为富 文本 [https://doc.qt.io/qt-5/richtext-html-subset.html] ,否则将显示 为纯文本。 Name 插件在 Python 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。0 码力 | 1685 页 | 91.87 MB | 1 年前3Krita 5.2 官方文档中文版 2023-12-08A
回的结果应该和该页非常相近。你可以研究一下前面例子使用过的功能: createDocument()、activeWindow()、action()。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在一起会让人觉得眼 花缭乱。不过这正是 SIP 大展身手的地方:它会尽可能把这些程序类翻译为简 单易懂的 Python 格式。例如你可以看到 filters() 函数返回一个 QStringList instance()) 最后,除了 LibKis 文档之外,你可能还要阅读 Qt 文档,因为 Krita 通过 PyQt 把 Qt API 的绝大多数功能与 Python 进行了对接。这意味着你可以使用 Krita 本身也在使用的 Qt 功能来构建一套带有按钮和输入框的窗口!你可以查阅 Qt 文档 [https://doc.qt.io/] 和 PyQt 文档 [https://www.riverbankcomputing 里面显示。 X-Krita-Manual 此项为可选参数,它指向该插件配套的使用手册项目。它会被显示在 Python 插件管理器中。 HTML 格式的手册将显示为富文本 [https://doc.qt.io/qt- 5/richtext-html-subset.html] ,否则将显示为纯文本。 Name 插件在 Python 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。0 码力 | 1562 页 | 79.19 MB | 1 年前3Krita 5.1 官方文档中文版 2023-05-26A
回的结果应该和该页非常相近。你可以研究一下前面例子使用过的功能: createDocument()、activeWindow()、action()。 看到 Krita 的各种 C++ 程序类和 Q 开头的 Qt 程序类混列在一起会让人觉得眼 花缭乱。不过这正是 SIP 大展身手的地方:它会尽可能把这些程序类翻译为简 单易懂的 Python 格式。例如你可以看到 filters() 函数返回一个 QStringList instance()) 最后,除了 LibKis 文档之外,你可能还要阅读 Qt 文档,因为 Krita 通过 PyQt 把 Qt API 的绝大多数功能与 Python 进行了对接。这意味着你可以使用 Krita 本身也在使用的 Qt 功能来构建一套带有按钮和输入框的窗口!你可以查阅 Qt 文档 [https://doc.qt.io/] 和 PyQt 文档 [https://www.riverbankcomputing 里面显示。 X-Krita-Manual 此项为可选参数,它指向该插件配套的使用手册项目。它会被显示在 Python 插件管理器中。 HTML 格式的手册将显示为富文本 [https://doc.qt.io/qt- 5/richtext-html-subset.html] ,否则将显示为纯文本。 Name 插件在 Python 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。0 码力 | 1547 页 | 78.22 MB | 1 年前3
共 729 条
- 1
- 2
- 3
- 4
- 5
- 6
- 73