Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Qt Creator ManualTests ProjectsAndCode: Difference between revisions
(Fixing import, third step - fix links and update first table) |
(Fixing import, fourth step - fix second table, remove cleanup tag) |
||
Line 1: | Line 1: | ||
[[Category:Tools::QtCreator::QualityAssurance]] | [[Category:Tools::QtCreator::QualityAssurance]] | ||
Line 97: | Line 95: | ||
! Annotation | ! Annotation | ||
|+ | |+ | ||
| Open the project tests/manual/cplusplus-tools/cplusplus-tools.pro from Creator's sources and perform the following tasks: | |colspan="3"| Open the project tests/manual/cplusplus-tools/cplusplus-tools.pro from Creator's sources and perform the following tasks: | ||
|+ | |+ | ||
| Variable declarations: | | Variable declarations: | ||
Line 127: | Line 123: | ||
# Open a source or header file of a source/header couple (same base name) | # Open a source or header file of a source/header couple (same base name) | ||
# Press F4 or select from menu: Tools-> C++ -> Switch Header/Source | # Press F4 or select from menu: Tools-> C++ -> Switch Header/Source | ||
Creator should show the respective other file (header/source). | Creator should show the respective other file (header/source). | ||
| | | | ||
|+ | |+ | ||
Line 142: | Line 138: | ||
# Move cursor to a variable or function call | # Move cursor to a variable or function call | ||
# Press Ctrl+Shift+R or select from menu Tools-> C++ -> Rename Symbol Under Cursor | # Press Ctrl+Shift+R or select from menu Tools-> C++ -> Rename Symbol Under Cursor | ||
You should be able to enter another name changing every occurrence of this variable or function | You should be able to enter another name changing every occurrence of this variable or function.<br/> | ||
Note: When changing variable "a" to "b", other variables like "a1" must not be changed! | '''Note''': When changing variable "a" to "b", other variables like "a1" must not be changed! | ||
| automated | | automated | ||
| | | |
Revision as of 16:31, 9 March 2015
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. |
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.