Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to import the new `QtQuickTemplates2` and `QtQuickShapes` modules in 5.12?
Forum Update on Monday, May 27th 2025

How to import the new `QtQuickTemplates2` and `QtQuickShapes` modules in 5.12?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 405 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • tracymaT Offline
    tracymaT Offline
    tracyma
    wrote on last edited by
    #1

    I find that there are some new QtQuick modules availiable in header(c++ aslide), and try to import them, the header files can not be found:

    #include <QtQuickTemplates2/private/qquickbutton_p.h>
    #include <QtQuickShapes/private/qquickshape_p.h>
    

    Qt 5.12rc2 with VS2017 15.9.3

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Private headers are private for a reason!

      If you do want to include them, however, you need to add relevant private modules to QT variable in qmake:

      QT += qml qml-private quick quick-private quickcontrols2 quickcontrols2-private
      

      I'm not sure if that'll work, but it might.

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved