Quickly Testing Qt Desktop Applications With Approval TestsTesting Qt Desktop Applications with Approval Tests Clare Macrae (She/her) clare@claremacrae.co.uk 16 September 2020 CppCon (Online) ## Audience: Developers testing Desktop GUIs, including Qt-based ones html ## Contents ## • Introduction • Qt —Setting Up Testing —Error-prone Things —Approval Tests • Extras -Tools —Summary ## About Me • Scientific C++ and Qt developer since 1999 • My mission: Sustainable Fuzzing/Testing Track Test track at CppCon 2020 fuzzing() 1 ## 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 | 1 年前3
Visualize Time Enabled Data using ArcGIS Qt (C++) and Toolkit## V isualize Time Enabled Data using ArcGIS Qt (C++) and Toolkit Gela Malek Pour gmalekpour@esri.com ## About Esri • We build mapping technology that our customers use to solve the world’s most complex false Time Offset: 0 Time Offset Units: esriTimeUnitsCenturies ## ArcGIS Runtime for Qt - SDK • The Qt SDK allows you to build cross platform desktop and mobile apps • Incorporate features such we will be using the C++ SDK ## ArcGIS 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 Where:0 码力 | 10 页 | 734.09 KB | 1 年前3
AppovatTestsQtLIB_NAME} ALIAS ${LIB_NAME}) find_package(Qt5 COMPONENTS Widgets Test REQUIRED) target_link_libraries(${LIB_NAME} INTERFACE ApprovalTests Qt5::Widgets Qt5::Test) endif()0 码力 | 1 页 | 398.00 B | 1 年前3
C++高性能并行编程与优化 - 课件 - 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 文件包含所有相关信息(类似于 文件包含所有相关信息(类似于 nodejs 的 package.json),比你单独的一个个去找动态库文件要灵活的多。 - 包配置文件由第三方库的作者(Qt 的开发团队)提供,在这个库安装时(Qt 的安装程序或 apt install 等)会自动放到 /usr/lib/cmake/XXX/XXXConfig.cmake 这个路径(其中 XXX 是包名),供 CMake 用户找到并了解该包的具体信息。0 码力 | 56 页 | 6.87 MB | 2 年前3
Libraries: A First Step Toward Standard C++ Dependency Managementcmake ## FindQt3 Locate Qt include paths and libraries This module defines: QT_INCLUDE_DIR - where to find qt.h, etc. QT_LIBRARY_目录 - the libraries to link against to use Qt. QT_DEFINITIONS - definitions when compiling code that uses Qt. QT_FOUND - If false, don't try to use Qt. QT_VERSION_STRING - the version of Qt found If you need the multithreaded version of Qt, set QT_MT_REQUIRED to TRUE Also defined but not for general use are: QT_MOC_EXECUTABLE, where to find the moc tool. QT_UIC_EXECUTABLE, where to find the uic tool. QT_QT_LIBRARY, where to find the Qt library. QT_QTMAIN_LIBRARY, where to find0 码力 | 82 页 | 4.21 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 11 现代 CMake 进阶指南[Image](/uploads/documents/b/b/d/6/bbd66be3b8ad8501e66f11434b3a5cf1/p73_2.jpg) The program can't start because Qt5Widgets.dll is missing from your computer. Try reinstalling the program to fix this problem. ## 手动拷贝 finder,尽量用系统自带的,可以保证用的是系统自带库的那个配置。 ## find_package(Qt5 REQUIRED) 出错了 ## find_package(Qt5 REQUIRED) target_link_libraries(main PUBLIC Qt5::Widgets Qt5::Gui) CMake Error at CMakeLists.txt:6 (find_package): /usr/lib64/cmake/Qt5/Qt5Config.cmake but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT FOUND. Reason given by package: The Qt5 package requires at least one component ## 原因:Qt5 具有多个组件,必须指定你需要哪些组件0 码力 | 166 页 | 6.54 MB | 2 年前3
Jupyter Notebook 6.2.0 Documentationprint the same ID information along with other details. You can then, for example, manually start a Qt console connected to the same kernel from the command line, by passing a portion of the ID: $ jupyter [https://ipython.readthedocs.io/en/stable/interactive/tutorial.html#magics-explained] in the notebook to open a Qt console connected to the same kernel. ## See also ## Notebook user interface When you create a new "metadata": {} "# Connecting to an existing IPython kernel using the Qt Console" } ], }, { "cell_type": "markdown", "metadata":0 码力 | 283 页 | 4.07 MB | 2 年前3
Krita 5.2 Manualabove. 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 | 2 年前3
Krita 5.2 官方文档中文版 2023-12-08Ainstance()),它返回的结果应该和该页非常相近。你可以研究一下前面例子使用过的功能: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/qt5/richtext-html-subset.html],否则将显示为纯文本。 ## Name 插件在 Python 插件管理器中显示的名称。 ## Comment 插件在 Python0 码力 | 1562 页 | 79.19 MB | 2 年前3
Krita 5.1 官方文档中文版 2023-05-26Ainstance()),它返回的结果应该和该页非常相近。你可以研究一下前面例子使用过的功能: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/qt5/richtext-html-subset.html],否则将显示为纯文本。 ## Name 插件在 Python 插件管理器中显示的名称。 ## Comment 插件在 Python0 码力 | 1547 页 | 78.22 MB | 2 年前3
共 720 条
- 1
- 2
- 3
- 4
- 5
- 6
- 72
相关搜索词
Approval TestsQtSetting Up TestingError-prone ThingsToolsArcGIS Runtime ToolkitC++时间滑块时间-aware图层ApprovalTestsQtCMaketarget_include_directoriestarget_link_librariesQt5模块化项目管理语义版本号名字空间项目结构dependency managementlibrariespackage managersNinjaCMakeLists.txt缓存变量构建类型Jupyter NotebookTornado安全性升级Python 3数字绘画Krita创作工具文档贡献用户支持Krita 5.2笔刷系统图层操作变形工具混合模式性能设置资源管理界面布局













