返回介绍

Examples

发布于 2019-10-04 14:57:22 字数 2921 浏览 1383 评论 0 收藏 0

Qt ships with lots of small and some medium-sized example programs that teach you how to implement various tasks with Qt. Most of them will show how to use a certain class or module, others aim at programming techniques and Qt basics, and some of them simply want to show you what's possible.

Note that most of the examples assume that you have some experience with C++ and Qt and therefore are not commented extensively. If you are interested in a line-by-line coverage please refer to the step-by-step examples.

Qt Base Classes: Assorted Examples

  • QAction and QActionGroup
  • QFont, QFontMetrics, QFontInfo and QFontDatabase
  • QProcess

Qt Modules: Assorted Examples

  • XML examples
  • Network examples
  • OpenGL examples
  • Table examples
  • SQL examples

Qt Extensions: Assorted Examples

  • Qt-based plugins for web browsers
  • Xt/Motif support extension

Miscellaneous Examples

Analog Clock
Simple Addressbook
Biff (UNIX only)
Buttons and Groupboxes
Canvas Example
Listviews with Checkable Items
Cursors
Customized Layoutmanager
Digital Clock
Qt Demo
Painting on the Desktop
A Directory Browser
Drag and Drop
Draw Demo
Connect the Points
Simple Filemanager
A Rectangle Draw "Benchmark"
Hello, World
Simple HTML Help Browser
Internationalization
Iconview
Layout Managers
Conway's Game of Life
Line Edits
Listbox Example
Listboxes and Comboboxes
Listviews
A MDI Application
Using menus
Movies or the Story of the Animated GIF file
Picture
Popup Widgets
Progress Bar and Dialog Example
Progress Bar
QDir
Font Displayer
QMag
A Tiny QTL Example
Simple HTML Browser
Range controls
Richtext
Rot13
Simple Painting Application
Scrollview
Show Image
A Complete Application Window
Drag and Drop (Simple)
Sound Example
Splitter
Tabdialog
Tablet Example
Tetrix
Text Edit Example
Themes (Styles)
Tic Tac Toe
Advanced use of tool tips
Widgets Example
Wizard
Transformed Graphics Demo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文