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
ae9b6f32
Commit
ae9b6f32
authored
15 years ago
by
Kavindra Devi Palaraja
Browse files
Options
Downloads
Patches
Plain Diff
Doc - More of the tutorial
Reviewed-By: TrustMe
parent
0001216f
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
+11
-1
11 additions, 1 deletion
doc/addressbook-sdk.qdoc
doc/examples/addressbook-sdk/part5/finddialog.h
+3
-1
3 additions, 1 deletion
doc/examples/addressbook-sdk/part5/finddialog.h
with
14 additions
and
2 deletions
doc/addressbook-sdk.qdoc
+
11
−
1
View file @
ae9b6f32
...
@@ -727,7 +727,7 @@
...
@@ -727,7 +727,7 @@
dialog that can prompt the user for a contact's name. Qt provides QDialog,
dialog that can prompt the user for a contact's name. Qt provides QDialog,
which we subclass in this chapter, to implement a FindDialog class.
which we subclass in this chapter, to implement a FindDialog class.
\section1 Designing FindDialog
\section1 Designing
\c
FindDialog
#image
#image
...
@@ -743,6 +743,16 @@
...
@@ -743,6 +743,16 @@
in a horizontal layout. Then set a top level layout - either horizontal or
in a horizontal layout. Then set a top level layout - either horizontal or
vertical.
vertical.
\section1 Implementing \c FindDialog
Let's look at \c{FindDialog}'s header file. Here, we need to provide
private members for the class so that we can access the widgets freely
throughout the class.
\snippet examples/addressbook-sdk/part5/finddialog.h private members
*/
*/
...
...
This diff is collapsed.
Click to expand it.
doc/examples/addressbook-sdk/part5/finddialog.h
+
3
−
1
View file @
ae9b6f32
...
@@ -19,11 +19,13 @@ public:
...
@@ -19,11 +19,13 @@ public:
public
slots
:
public
slots
:
void
findClicked
();
void
findClicked
();
//! [private members]
private:
private:
Ui
::
FindDialog
*
m_ui
;
Ui
::
FindDialog
*
m_ui
;
\
QPushButton
*
findButton
;
QPushButton
*
findButton
;
QLineEdit
*
lineEdit
;
QLineEdit
*
lineEdit
;
QString
findText
;
QString
findText
;
//! [private members]
};
};
#endif // FINDDIALOG_H
#endif // FINDDIALOG_H
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