Skip to content

Commit 83716c2

Browse files
add compile definition to disable APIs deprecated in Qt 6
1 parent cc3297a commit 83716c2

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if(SVG)
2424
add_compile_definitions(SVG_ENABLED=1)
2525
endif()
2626

27+
add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x060000)
28+
2729
add_executable(qdc6
2830
main.cpp
2931
resources.qrc

qdc6.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ equals(QT_MAJOR_VERSION, 4) {
1515

1616
SOURCES += main.cpp
1717
RESOURCES += resources.qrc
18+
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000

qdc6.qbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ QtGuiApplication {
88
]
99

1010
cpp.cxxLanguageVersion: "c++11"
11+
cpp.defines: [
12+
"QT_DISABLE_DEPRECATED_BEFORE=0x060000",
13+
]
1114

1215
Depends {
1316
condition: svg

0 commit comments

Comments
 (0)