Qt Creator

To start using the Qt Digital Advertising plugin with the Qt Creator all you need to do is:

  1. Add a plugin import statement.
  2. Add an ad item code to your QML application code.
  3. Setup ad targeting in the dashboard.
  4. Setup ad properties in the code.
  5. Build and run the application.


Assuming that you have set up the Qt Digital Advertising plugin properly, to use the plugin types add the following import statement to your .qml file:

import QtDigitalAdvertising 1.1

Minimal Working Example

To get sure that ad content can be shown correctly you can use the bare-minimum example from the API Reference (see Detailed Description).

Note: Remember that ad targeting has to be setup first.

Also you can try a full example. For more information, see Examples.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.