English Русский Spanish Italian 简体中文

Integrating Qt Examples

Once you have written an example (see Writing Qt Examples) and documented it, you need to do the following things to ensure that it will work correctly within Qt’s build and documentation systems:

  1. Ensure that the example’s .pro file contains the standard rules for installation.
  2. Add the example directory to the parent directory’s .pro file.
  3. Add documentation for the example to the doc/src/example directory. Make sure you create a screenshot with a file name that ends in  -example.png.
  4. Ensure that the example and documentation files are correctly licensed. Use existing license headers for examples and documentation and update the year accordingly.
  5. Add a link to the example documentation to the doc/src/examples.qdoc file under the relevant section.
  6. Add the example to qtdemo by editing the demos/qtdemo/xml/examples.xml file.

Categories: