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
6c14c86f
Commit
6c14c86f
authored
15 years ago
by
Kavindra Devi Palaraja
Committed by
con
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes: Doc - more of Part 3
RevBy: TrustMe
parent
388c24ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/addressbook-sdk.qdoc
+20
-4
20 additions, 4 deletions
doc/addressbook-sdk.qdoc
doc/examples/addressbook-sdk/part3/addressbook.ui
+3
-3
3 additions, 3 deletions
doc/examples/addressbook-sdk/part3/addressbook.ui
with
23 additions
and
7 deletions
doc/addressbook-sdk.qdoc
+
20
−
4
View file @
6c14c86f
...
@@ -272,10 +272,11 @@
...
@@ -272,10 +272,11 @@
We shall continue with the form we had from the last chapter; we have the
We shall continue with the form we had from the last chapter; we have the
labels and input fields set up, but we need to add push buttons to complete
labels and input fields set up, but we need to add push buttons to complete
the process of adding a contact. So, we begin by breaking the existing
the process of adding a contact. So, we begin by breaking the existing
layouts. Then, we add three push buttons. Double-click on each of them to
layouts: select \gui{Break Layout} from the context menu. You might have to
set their text to "Add", "Submit", and "Cancel". We now require a vertical
do a \gui{Select All} with \key{Ctrl+A} first.. Then, we add three push
spacer to ensure that the push buttons will be laid out neatly; drag one
buttons. Double-click on each of them to set their text to "Add", "Submit",
from the \gui{Widget Box}.
and "Cancel". We now require a vertical spacer to ensure that the push
buttons will be laid out neatly; drag one from the \gui{Widget Box}.
Next, lay out these three push buttons and the spacer vertically, by
Next, lay out these three push buttons and the spacer vertically, by
selecting all three of them (using the \key{Ctrl + click}) and choosing
selecting all three of them (using the \key{Ctrl + click}) and choosing
...
@@ -447,6 +448,21 @@
...
@@ -447,6 +448,21 @@
\section1 Placing Widgets on the Form
\section1 Placing Widgets on the Form
So far, our application allows us to add new contacts. However, we also
need to traverse the existing contacts. To do so, we add two push buttons
at the bottom of our application and name them: \gui Next and
\gui Previous. Place them in a horizontal layout.
To lay the buttons out, we begin by breaking our top level layout. Simply
right-click on \c AddressBook in the \gui{Object Inspector} and then select
\gui{Lay out|Break Layout} Then we drag two push buttons onto the form and
name them accordingly. The buttons' \c objectName should be \c nextButton
and \c previousButton, respectively.
\section1 The AddressBook Class
\section1 The AddressBook Class
In order to add navigation functions to the address book application, we
need to add two more slots to our \c AddressBook class: \c next() and
\c previous().
*/
*/
This diff is collapsed.
Click to expand it.
doc/examples/addressbook-sdk/part3/addressbook.ui
+
3
−
3
View file @
6c14c86f
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<x>
0
</x>
<x>
0
</x>
<y>
0
</y>
<y>
0
</y>
<width>
600
</width>
<width>
600
</width>
<height>
400
</height>
<height>
294
</height>
</rect>
</rect>
</property>
</property>
<property
name=
"windowTitle"
>
<property
name=
"windowTitle"
>
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
<widget
class=
"QWidget"
name=
"layoutWidget"
>
<widget
class=
"QWidget"
name=
"layoutWidget"
>
<property
name=
"geometry"
>
<property
name=
"geometry"
>
<rect>
<rect>
<x>
20
</x>
<x>
9
</x>
<y>
20
</y>
<y>
9
</y>
<width>
413
</width>
<width>
413
</width>
<height>
225
</height>
<height>
225
</height>
</rect>
</rect>
...
...
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