Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
0c3a7df7
Commit
0c3a7df7
authored
16 years ago
by
Kavindra Palaraja
Committed by
con
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes: More documentation fixes
(cherry picked from commit
a02c5e61
)
parent
a48ee6f7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/qtcreator.qdoc
+43
-39
43 additions, 39 deletions
doc/qtcreator.qdoc
with
43 additions
and
39 deletions
doc/qtcreator.qdoc
+
43
−
39
View file @
0c3a7df7
...
...
@@ -814,21 +814,26 @@
a pointer to some private data structure, you will see a list of children,
signals and slots.
Similar
i
ly, instead of
showing a bunch of pointers and ints,
a QHash or QMap
will display
its
contents in an orderly
fashion,
a QFileInfo will expose e.g. access data, and the otherwis
e
"opaque" QVariant gives
access to the "real" contents.
The \gui{Locals and Watchers
V
iew
}
can be used to change the
contents of
variables of simple data types
like
int or float
while the program
is stopped. To do so, click
into
the
'V
alue
'
column, modify the value there, and hit \key{
Return
}
.
Similarly, instead of
displaying many pointers and integers, Qt Creator's
debugger
will display
the
contents
of a QHash or QMap
in an orderly
manner.
Also, the debugger will display access data for QFileInfo and provid
e
access to the "real" contents
of QVariant
.
The \gui{Locals and Watchers
} v
iew can be used to change the
contents of
variables of simple data types
such as \c
int or
\c
float
when the program
is stopped. To do so, click
on the \gui Value column, modify
the
v
alue
with the inplace editor, and hit \key Enter (or \key
Return
)
.
\section2 Modules
The \gui{Modules View} is hidden by default and only useful in
By default, the \gui Modules view is hidden as it is only useful with the
experimental delayed debug information loading feature. You can turn this
feature on by selecting \gui{Fast Debugger Start}
The \gui Modules view is hidden by default and only useful in
connection with the experimental feature of delayed debug
information loading. This feature is accessible by selecting
\gui{Debug} and \gui{Fast Debugger Start}. When using the
...
...
@@ -849,29 +854,28 @@
commands
\section1 A Walkthrough for the Debugger Frontend
\section1 A short walk through the debugger frontend
In our \l{Writing a Simple Program with Qt Creator}{TextFinder}
example, we read a text file into a QString and then display it with a
QTextEdit. Suppose, you would like to look at this QString, \c{line},
and see what data it actually stores. Follow the steps described below
to place a break point and view the QString object's data.
In our \l{Writing a Simple Program with Qt Creator}{TextFinder} example, we
read a text file into a QString and then display it with a QTextEdit.
Suppose, you would like to look at this QString, \c{line}, and see what
data it actually stores. Follow the steps described below to place a
breakpoint and view the QString object's data.
\table
\row
\i \inlineimage qtcreator-setting-breakpoint1.png
\i \inlineimage qtcreator-setting-breakpoint1.png
\i \bold{Setting a Breakpoint}
First, we set a breakpoint on the line where we invoke
\l{QTextEdit::}{setPlainText()} by clicking between the line number and
the
window border. Then, select \gui{Start Debugging} from the
\gui{Debug} menu
or press \key{F5}.
\l{QTextEdit::}{setPlainText()} by clicking between the line number and
the
window border. Then, select \gui{Start Debugging} from the
\gui{Debug} menu
or press \key{F5}.
\endtable
Breakpoints are visible in the \gui{Breakpoints} view, shown below, in
\gui{Debug} mode. If you wish to remove a breakpoint, simply right
click on
it and select \gui{Delete breakpoint} from the context menu.
\gui{Debug} mode. If you wish to remove a breakpoint, simply right
-click on
it and select \gui{Delete breakpoint} from the context menu.
\image qtcreator-setting-breakpoint2.png
...
...
@@ -880,10 +884,10 @@
\image qtcreator-watcher.png
Suppose we modify our \c{on_findButton_clicked()} function to move back
to
the start of the document and continue searching once the cursor
hits the
end of the document. Adding this functionality can be done
with the code
snippet below:
Suppose we modify our \c{on_findButton_clicked()} function to move back
to
the start of the document and continue searching once the cursor
hits the
end of the document. Adding this functionality can be done
with the code
snippet below:
\code
void TextFinder::on_findButton_clicked()
...
...
@@ -915,9 +919,9 @@
}
\endcode
However, if you compile and run this code, the application will not
work
correctly due to a logic error. To locate this logic error, you
can step
through the code using the following buttons:
However, if you compile and run this code, the application will not
work
correctly due to a logic error. To locate this logic error, you
can step
through the code using the following buttons:
\image qtcreator-debugging-buttons.png
*/
...
...
@@ -931,20 +935,20 @@
\title Tips and Tricks
\bold{Quick
mode switch
}
\bold{Quick
ly Switching between Modes
}
You can quickly switch between modes by pressing \key{Ctrl+1},
\key{Ctrl+2},
etc
.
\key{Ctrl+2},
and so on
.
\bold{
Other k
eyboard
s
hortcuts}
\bold{
K
eyboard
S
hortcuts}
There are a lot of other \l{keyboard-shortcuts}{keyboard shortcuts}.
Qt Creator provides a lot of useful keyboard shortcuts. A complete list can
be found \l{Keyboard Shortcuts}{here}.
\bold{Command
l
ine}
\bold{
Running Qt Creator from the
Command
L
ine}
You can start Qt Creator from a command prompt with an already
existing session or \c{.pro} file by giving the name as argument on the
command line.
You can start Qt Creator from a command prompt with an existing session or
\c{.pro} file by giving the name as argument on the command line.
\bold{Sidebar}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment