Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
835f15cfb (dev), 2e6403f8b (dev), 9f9ff18ba (dev), f30d72365 (6.5), 9c75880e5 (6.5), 222a5601a (6.5), ec184d4c7 (dev), 542925c61 (6.7), 91c3e3dce (dev), f87eb7401 (6.7), bc4bccb87 (6.6)
Description
Qt module targets can be referenced both with Qt:: and Qt6::, e.g. Qt::Core vs Qt6::Core.
Qt:: was introduced for projects that need to stay compatible with Qt 5: See also Qt 5 and Qt 6 compatibility. But it has technical limitations, which affects e.g. Squish. So we shouldn't use it in Qt code ourselves, and especially not in Qt 6 examples.
Attachments
Issue Links
- relates to
-
QTBUG-104112 Document potential pitfalls of using versionless targets and packages in CMake project code
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-113277 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
474993,2 | Examples: Use versioned CMake targets for Qt modules | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
474994,2 | Examples: Use versioned CMake targets for Qt modules | dev | qt/qtbase | Status: MERGED | +2 | 0 |
475445,3 | Use versioned CMake targets for Qt modules | dev | qt/qtdoc | Status: MERGED | +2 | 0 |
475473,3 | Use versioned CMake targets for Qt modules | 6.5 | qt/qtdoc | Status: MERGED | +2 | 0 |
475502,3 | Examples: Use versioned CMake targets for Qt modules | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
475511,2 | Examples: Use versioned CMake targets for Qt modules | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
524734,3 | Use canonical Qt6:: target prefix in examples | dev | qt/qtwebview | Status: MERGED | +2 | 0 |
526033,2 | Use canonical Qt6:: target prefix in examples | 6.7 | qt/qtwebview | Status: MERGED | +2 | 0 |
528269,4 | Examples: Use versioned CMake targets for Qt modules | dev | qt/qtconnectivity | Status: MERGED | +2 | 0 |
531606,2 | Examples: Use versioned CMake targets for Qt modules | 6.7 | qt/qtconnectivity | Status: MERGED | +2 | 0 |
531715,2 | Examples: Use versioned CMake targets for Qt modules | 6.6 | qt/qtconnectivity | Status: MERGED | +2 | 0 |