Qt Creator ManualTests ProjectsAndCode: Difference between revisions
(Fixing import, second step - removing unneeded headline, adding lost paragraph) |
(Fixing import, third step - fix links and update first table) |
||
Line 10: | Line 10: | ||
|+ | |+ | ||
|Check parsing of qmake projects: | |Check parsing of qmake projects: | ||
# Prepare sources of Qt and Qt Creator (see below) | # Prepare sources of Qt and Qt Creator ([[Qt Creator ManualTests ProjectsAndCode#Preparing sources of Qt and Qt Creator|see below]]) | ||
# Select "File" -> "Open File or Project…" from Creator's menu and open projects.pro from Qt's sources. | # Select "File" -> "Open File or Project…" from Creator's menu and open projects.pro from Qt's sources. | ||
# Select "File"-> "Open File or Project…" from Creator's menu and open qtcreator.pro from Qt Creator's sources. | # Select "File"-> "Open File or Project…" from Creator's menu and open qtcreator.pro from Qt Creator's sources. | ||
# Wait until parsing finished. | # Wait until parsing finished. | ||
# Check that the projects are completely indexed, e.g. by searching for some of [ | # Check that the projects are completely indexed, e.g. by searching for some of [https://doc.qt.io/qt-5/classes.html Qt's Classes] using the [https://doc.qt.io/qtcreator/creator-editor-locator.html Locator]. | ||
| automated | | automated | ||
| | | | ||
|+ | |+ | ||
|Check parsing of qbs projects: | |Check parsing of qbs projects: | ||
# Prepare sources of Qt Creator (see below) | # Prepare sources of Qt Creator ([[Qt Creator ManualTests ProjectsAndCode#Preparing sources of Qt and Qt Creator|see below]]) | ||
# In "Help" -> "About Plugins…", verify that QbsProjectManager is enabled. | # In "Help" -> "About Plugins…", verify that QbsProjectManager is enabled. | ||
# Select "File"-> "Open File or Project…" from Creator's menu and open qtcreator.qbs from Qt Creator's sources. | # Select "File"-> "Open File or Project…" from Creator's menu and open qtcreator.qbs from Qt Creator's sources. | ||
# Wait until parsing finished. | # Wait until parsing finished. | ||
# Check that the project is completely indexed, e.g. by searching for some of [ | # Check that the project is completely indexed, e.g. by searching for some of [https://doc.qt.io/qt-5/classes.html Qt's Classes] using the [https://doc.qt.io/qtcreator/creator-editor-locator.html Locator]. | ||
| | | | ||
| | | | ||
Line 30: | Line 30: | ||
# Open a project. | # Open a project. | ||
# Go to "Projects" mode. | # Go to "Projects" mode. | ||
# [ | # [https://doc.qt.io/qtcreator/creator-build-settings.html Add a new build configuration]. | ||
# The project can be built successfully with this build configuration. | # The project can be built successfully with this build configuration. | ||
| | | | ||
Line 38: | Line 38: | ||
# Open a project. | # Open a project. | ||
# Go to "Projects" mode. | # Go to "Projects" mode. | ||
# [ | # [https://doc.qt.io/qtcreator/creator-run-settings.html Add a new run configuration]. | ||
# The project can be run successfully with this run configuration. | # The project can be run successfully with this run configuration. | ||
| | | | ||
Line 53: | Line 53: | ||
# Have [http://www.cmake.org CMake] installed. | # Have [http://www.cmake.org CMake] installed. | ||
# Windows: Add the path to the installed cmake.exe to your system's PATH environment variable. | # Windows: Add the path to the installed cmake.exe to your system's PATH environment variable. | ||
# Download [ | # Download [https://speedcrunch.googlecode.com/files/speedcrunch-0.10.1.tar.gz SpeedCrunch's source code package]. | ||
# Extract the package. | # Extract the package. | ||
# Select "File" -> "Open File or Project…" from Creator's menu and open src/CMakeLists.txt. | # Select "File" -> "Open File or Project…" from Creator's menu and open src/CMakeLists.txt. | ||
Line 81: | Line 81: | ||
|+ | |+ | ||
| Windows: Foreign character sets: | | Windows: Foreign character sets: | ||
# Add a user whose name contains non-latin characters ( | # Add a user whose name contains non-latin characters (Віталій , ناصر , 右京) using Windows Control Panel. | ||
# Login to this user account and run Creator. | # Login to this user account and run Creator. | ||
# Create a session and activate this session. No warnings or error messages should appear. | # Create a session and activate this session. No warnings or error messages should appear. | ||
Line 87: | Line 87: | ||
| | | | ||
|+ | |+ | ||
| Try to make Creator crash, be evil | | Try to make Creator crash, be evil. ;-) | ||
| | | | ||
|} | |} | ||
Line 165: | Line 165: | ||
This can be used for all following tests after it was done once.<br /> | This can be used for all following tests after it was done once.<br /> | ||
Simply download sources of Qt ([https://download.qt.io/official_releases/qt/5.4/5.4.1/single/qt-everywhere-opensource-src-5.4.1.tar.gz tar.gz]/[https://download.qt.io/official_releases/qt/5.4/5.4.1/single/qt-everywhere-opensource-src-5.4.1.zip zip]) and Qt Creator ([http://download.qt.io/official_releases/qtcreator/3.3/3.3.2/qt-creator-opensource-src-3.3.2.tar.gz tar.gz]/[https://download.qt.io/official_releases/qtcreator/3.3/3.3.2/qt-creator-opensource-src-3.3.2.zip zip]) and extract them. You have to build Qt outside of qtcreator. Otherwise qtcreator won’t be able to parse the Qt sources. | Simply download sources of Qt ([https://download.qt.io/official_releases/qt/5.4/5.4.1/single/qt-everywhere-opensource-src-5.4.1.tar.gz tar.gz]/[https://download.qt.io/official_releases/qt/5.4/5.4.1/single/qt-everywhere-opensource-src-5.4.1.zip zip]) and Qt Creator ([http://download.qt.io/official_releases/qtcreator/3.3/3.3.2/qt-creator-opensource-src-3.3.2.tar.gz tar.gz]/[https://download.qt.io/official_releases/qtcreator/3.3/3.3.2/qt-creator-opensource-src-3.3.2.zip zip]) and extract them. You have to build Qt outside of qtcreator. Otherwise qtcreator won’t be able to parse the Qt sources. | ||
Revision as of 16:05, 9 March 2015
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine. Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean. |
Test | Result | Annotation |
---|---|---|
Check parsing of qmake projects:
|
automated | |
Check parsing of qbs projects:
|
||
Adding a build configuration:
|
||
Adding a run configuration:
|
||
Opening a project from Welcome screen:
|
automated | |
CMake project management:
|
semi-automated | |
Creator can build and run the project from the previous test. | automated | |
External changes:
|
automated | |
Deleted files:
|
automated | |
Windows: Foreign character sets:
|
||
Try to make Creator crash, be evil. ;-) |
Test | Result | Annotation |
---|---|---|
Open the project tests/manual/cplusplus-tools/cplusplus-tools.pro from Creator's sources and perform the following tasks: | ||
Variable declarations:
Creator will show you the declaration of the variable. |
automated | |
Function definitions:
Creator will show you the definition of the function. |
automated | |
Definition/declaration:
Creator should show the definition of this function
Creator should show the declaration of the function again. |
automated | |
Switching between sources and headers:
Creator should show the respective other file (header/source).| |
||
Finding usages:
A search result view should appear at the bottom indicating files containing usages of this variable or function. When expanding the tree view-like structures, the respective lines can be seen. Double clicking on them should direct you to this file and line |
||
Renaming usages:
You should be able to enter another name changing every occurrence of this variable or function Note: When changing variable "a" to "b", other variables like "a1" must not be changed! |
automated | |
When entering the first few letters of a variable or function (or: includes, keywords, function arguments, snippets, etc), Creator should automatically show possible completions. You might have to hit Ctrl+Space. | ||
When hovering the mouse over some variable or function call, a tooltip should appear telling you the type of this element.
In case it's a Qt object (like QString, QWidget, …), you should see a picture of the F1 button in the top right corner of the tooltip, indicating that you can easily switch to the Qt documentation of this class or method by pressing F1. Pressing F1 will open the related page. |
||
Try code folding. Fold and unfold classes and functions. Does everything work as expected? |
Preparing sources of Qt and Qt Creator
This can be used for all following tests after it was done once.
Simply download sources of Qt (tar.gz/zip) and Qt Creator (tar.gz/zip) and extract them. You have to build Qt outside of qtcreator. Otherwise qtcreator won’t be able to parse the Qt sources.