資源簡介
這是一個內(nèi)容十分豐富的Qt例子集。案例具有代表性,十分適合Qt學習者工作人員學習和參考。基本上涵蓋了Qt開發(fā)過程中的常見情況。
代碼片段和文件信息
/****************************************************************************
**
**?Copyright?(C)?2012?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:BSD$
**?You?may?use?this?file?under?the?terms?of?the?BSD?license?as?follows:
**
**?“Redistribution?and?use?in?source?and?binary?forms?with?or?without
**?modification?are?permitted?provided?that?the?following?conditions?are
**?met:
**???*?Redistributions?of?source?code?must?retain?the?above?copyright
**?????notice?this?list?of?conditions?and?the?following?disclaimer.
**???*?Redistributions?in?binary?form?must?reproduce?the?above?copyright
**?????notice?this?list?of?conditions?and?the?following?disclaimer?in
**?????the?documentation?and/or?other?materials?provided?with?the
**?????distribution.
**???*?Neither?the?name?of?Nokia?Corporation?and?its?Subsidiary(-ies)?nor
**?????the?names?of?its?contributors?may?be?used?to?endorse?or?promote
**?????products?derived?from?this?software?without?specific?prior?written
**?????permission.
**
**?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS
**?“AS?IS“?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT
**?LIMITED?TO?THE?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR
**?A?PARTICULAR?PURPOSE?ARE?DISCLAIMED.?IN?NO?EVENT?SHALL?THE?COPYRIGHT
**?OWNER?OR?CONTRIBUTORS?BE?LIABLE?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL
**?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL?DAMAGES?(INCLUDING?BUT?NOT
**?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR?SERVICES;?LOSS?OF?USE
**?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER?CAUSED?AND?ON?ANY
**?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY?OR?TORT
**?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE
**?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.“
**?$QT_END_LICENSE$
**
****************************************************************************/
#include?
#include?
#include?
#include?
class?Application;
class?DocumentList;
//!?[0]
class?Document?:?public?Qobject
{
????Q_object
????Q_CLASSINFO(“ClassID“?“{2b5775cd-72c2-43da-bc3b-b0e8d1e1c4f7}“)
????Q_CLASSINFO(“InterfaceID“?“{2ce1761e-07a3-415c-bd11-0eab2c7283de}“)
????Q_PROPERTY(Application?*application?READ?application)
????Q_PROPERTY(QString?title?READ?title?WRITE?settitle)
public:
????Document(DocumentList?*list);
????~Document();
????Application?*application()?const;
????QString?title()?const;
????void?settitle(const?QString?&title);
private:
????QWidget?*page;
};
//!?[0]
//!?[1]
class?DocumentList?:?public?Qobject
{
????Q_object
????Q_CLASSINFO(“ClassID“?“{496b761d-924b-4554-a18a-8f3704d2a9a6}“)
????Q_CLASSINFO(“InterfaceID“?“{6c9e30e8-3ff6-4e6a-9edc-d219d074a148}“)
????Q_PROPERTY(Applicatio
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????737??2012-04-27?03:45??examples\activeqt\activeqt.pro
?????文件????????314??2012-04-27?03:45??examples\activeqt\comapp\comapp.pro
?????文件?????????23??2012-04-27?03:45??examples\activeqt\comapp\comapp.rc
?????文件???????6769??2012-04-27?03:45??examples\activeqt\comapp\main.cpp
?????文件???????5741??2012-04-27?03:45??examples\activeqt\dotnet\walkthrough\csharp.csproj
?????文件???????3974??2012-04-27?03:45??examples\activeqt\dotnet\walkthrough\Form1.cs
?????文件???????7402??2012-04-27?03:45??examples\activeqt\dotnet\walkthrough\Form1.resx
?????文件???????3883??2012-04-27?03:45??examples\activeqt\dotnet\walkthrough\Form1.vb
?????文件???????5588??2012-04-27?03:45??examples\activeqt\dotnet\walkthrough\vb.vbproj
?????文件???????3575??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\app.csproj
?????文件???????3801??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\lib\lib.vcproj
?????文件???????2608??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\lib\networker.cpp
?????文件???????2487??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\lib\networker.h
?????文件???????2477??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\lib\tools.cpp
?????文件???????2328??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\lib\tools.h
?????文件???????2359??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\lib\worker.cpp
?????文件???????2563??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\lib\worker.h
?????文件????????834??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\main.cs
?????文件???????1410??2012-04-27?03:45??examples\activeqt\dotnet\wrapper\wrapper.sln
?????文件????????231??2012-04-27?03:45??examples\activeqt\hierarchy\hierarchy.inf
?????文件????????537??2012-04-27?03:45??examples\activeqt\hierarchy\hierarchy.pro
?????文件???????2321??2012-04-27?03:45??examples\activeqt\hierarchy\main.cpp
?????文件???????3412??2012-04-27?03:45??examples\activeqt\hierarchy\ob
?????文件???????3383??2012-04-27?03:45??examples\activeqt\hierarchy\ob
?????文件????????438??2012-04-27?03:45??examples\activeqt\menus\fileopen.xpm
?????文件????????415??2012-04-27?03:45??examples\activeqt\menus\filesave.xpm
?????文件???????2644??2012-04-27?03:45??examples\activeqt\menus\main.cpp
?????文件???????5837??2012-04-27?03:45??examples\activeqt\menus\menus.cpp
?????文件???????2609??2012-04-27?03:45??examples\activeqt\menus\menus.h
?????文件????????219??2012-04-27?03:45??examples\activeqt\menus\menus.inf
............此處省略7009個文件信息
- 上一篇:Mathematica8使用入門
- 下一篇:XposedDemo
評論
共有 條評論