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.

Import

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 2.0

Minimal Working Example

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

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

© 2024 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.