資源簡介
通過學習Qt地址薄例子的編寫過程,了解Qt開發的主要步驟和思想,掌握Qt開發的技巧

代碼片段和文件信息
?/****************************************************************************
?**
?**?Copyright?(C)?2009?Nokia?Corporation?and/or?its?subsidiary(-ies).
?**?All?rights?reserved.
?**?Contact:?Nokia?Corporation?(qt-info@nokia.com)
?**
?**?This?file?is?part?of?the?examples?of?the?Qt?Toolkit.
?**
?**?$QT_BEGIN_LICENSE:LGPL$
?**?Commercial?Usage
?**?Licensees?holding?valid?Qt?Commercial?licenses?may?use?this?file?in
?**?accordance?with?the?Qt?Commercial?License?Agreement?provided?with?the
?**?Software?or?alternatively?in?accordance?with?the?terms?contained?in
?**?a?written?agreement?between?you?and?Nokia.
?**
?**?GNU?Lesser?General?Public?License?Usage
?**?Alternatively?this?file?may?be?used?under?the?terms?of?the?GNU?Lesser
?**?General?Public?License?version?2.1?as?published?by?the?Free?Software
?**?Foundation?and?appearing?in?the?file?LICENSE.LGPL?included?in?the
?**?packaging?of?this?file.??Please?review?the?following?information?to
?**?ensure?the?GNU?Lesser?General?Public?License?version?2.1?requirements
?**?will?be?met:?http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
?**
?**?In?addition?as?a?special?exception?Nokia?gives?you?certain?additional
?**?rights.??These?rights?are?described?in?the?Nokia?Qt?LGPL?Exception
?**?version?1.1?included?in?the?file?LGPL_EXCEPTION.txt?in?this?package.
?**
?**?GNU?General?Public?License?Usage
?**?Alternatively?this?file?may?be?used?under?the?terms?of?the?GNU
?**?General?Public?License?version?3.0?as?published?by?the?Free?Software
?**?Foundation?and?appearing?in?the?file?LICENSE.GPL?included?in?the
?**?packaging?of?this?file.??Please?review?the?following?information?to
?**?ensure?the?GNU?General?Public?License?version?3.0?requirements?will?be
?**?met:?http://www.gnu.org/copyleft/gpl.html.
?**
?**?If?you?have?questions?regarding?the?use?of?this?file?please?contact
?**?Nokia?at?qt-info@nokia.com.
?**?$QT_END_LICENSE$
?**
?****************************************************************************/
?#include?
?#include?“addressbook.h“
?AddressBook::AddressBook(QWidget?*parent)
?????:?QWidget(parent)
?{
?????QLabel?*nameLabel?=?new?QLabel(tr(“Name:“));
?????nameLine?=?new?QLineEdit;
?????QLabel?*addressLabel?=?new?QLabel(tr(“Address:“));
?????addressText?=?new?QTextEdit;
?????QGridLayout?*mainLayout?=?new?QGridLayout;
?????mainLayout->addWidget(nameLabel?0?0);
?????mainLayout->addWidget(nameLine?0?1);
?????mainLayout->addWidget(addressLabel?1?0?Qt::AlignTop);
?????mainLayout->addWidget(addressText?1?1);
?????setLayout(mainLayout);
?????setWindowtitle(tr(“Simple?Address?Book“));
?}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2656??2010-03-10?10:12??daima\addressbook1\addressbook.cpp
?????文件???????2345??2010-03-09?16:21??daima\addressbook1\addressbook.h
?????文件???????2255??2010-03-09?10:48??daima\addressbook1\maini.cpp
?????文件???????5130??2010-03-09?10:50??daima\addressbook2\addressbook.cpp
?????文件???????2662??2010-03-09?10:49??daima\addressbook2\addressbook.h
?????文件???????2255??2010-03-09?10:50??daima\addressbook2\main.cpp
?????文件???????6801??2010-03-09?10:51??daima\addressbook3\addressbook.cpp
?????文件???????2770??2010-03-09?10:51??daima\addressbook3\addressbook.h
?????文件???????2255??2010-03-09?10:52??daima\addressbook3\main.cpp
?????文件???????9185??2010-03-09?10:53??daima\addressbook4\addressbook.cpp
?????文件???????3012??2010-03-09?10:53??daima\addressbook4\addressbook.h
?????文件???????2255??2010-03-09?10:52??daima\addressbook4\main.cpp
?????文件???????3121??2010-03-09?11:06??daima\addressbook5\addressbook.h
?????文件??????10072??2010-03-09?10:40??daima\addressbook5\daaressbook.cpp
?????文件???????3083??2010-03-09?11:05??daima\addressbook5\finddialog.cpp
?????文件???????2421??2010-03-09?10:41??daima\addressbook5\finddialog.h
?????文件???????2255??2010-03-09?10:42??daima\addressbook5\main.cpp
?????文件??????12423??2010-03-10?18:11??daima\addressbook6\addressbook.cpp
?????文件???????3237??2010-03-09?10:54??daima\addressbook6\addressbook.h
?????文件???????3087??2010-03-09?10:56??daima\addressbook6\finddialog.cpp
?????文件???????2425??2010-03-09?10:56??daima\addressbook6\finddialog.h
?????文件???????2255??2010-03-09?10:52??daima\addressbook6\main.cpp
?????文件??????12616??2010-03-26?17:22??daima\addressbook7\addressbook.cpp
?????文件???????1717??2010-03-25?18:17??daima\addressbook7\addressbook.h
?????文件????????377??2010-04-01?09:57??daima\addressbook7\addressbook7.pro
?????文件?????288233??2010-04-01?09:57??daima\addressbook7\debug\addressbook.obj
?????文件?????106496??2010-04-01?09:57??daima\addressbook7\debug\addressbook7.exe
?????文件????????387??2010-04-01?09:57??daima\addressbook7\debug\addressbook7.intermediate.manifest
?????文件????1805312??2010-04-01?09:57??daima\addressbook7\debug\addressbook7.pdb
?????文件?????145862??2010-04-01?09:57??daima\addressbook7\debug\finddialog.obj
............此處省略25個文件信息
- 上一篇:WFQ調度算法仿真源碼
- 下一篇:LinuxVM虛擬機鏡像.docx
評論
共有 條評論