Creating Qt and Qt Quick tests

Qt and Qt Quick tests are built into Qt Creator, so you don't need to install any third-party components into your project. Learn how to create a Qt or Qt Quick test by following the steps given here:

  1. Create a new project by going to File | New File or Project.
  2. Select Auto Test Project under the Other Project category.
  3. In the Project and Test Information dialog, pick either Qt Test or Qt Quick Test for the Test framework option.
  4. There are two additional options under Qt Test, which are GUI Application and Requires QApplication. You can check these two options if you're building a  GUI application.
  5. After that, fill in the Test case name—anything will do.
  6. Select your Build system. Leave it as qmake if you are ...

Get Application Development with Qt Creator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.