From tkostia.a at yandex.ru Mon Nov 22 09:29:26 2021 From: tkostia.a at yandex.ru (=?utf-8?B?0KLQsNGO0YDRgdC60LjQuSDQmtC+0L3RgdGC0LDQvdGC0LjQvQ==?=) Date: Mon Nov 22 09:54:01 2021 Subject: [odb-users] Compilation with Qt6 Message-ID: <1795311637590647@mail.yandex.ru> I am trying to compile my project with DEFINES += "QT_DISABLE_DEPRECATED_BEFORE=0x060000". Compilation halted with with errors due to lack of deprecated methods and classes. When odb would support Qt6? odb version is 2.5.0-b.21 From boris at codesynthesis.com Tue Nov 23 08:30:31 2021 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Nov 23 08:28:16 2021 Subject: [odb-users] Compilation with Qt6 In-Reply-To: <1795311637590647@mail.yandex.ru> References: <1795311637590647@mail.yandex.ru> Message-ID: ???????? ?????????? writes: > I am trying to compile my project with DEFINES += > "QT_DISABLE_DEPRECATED_BEFORE=0x060000". > > Compilation halted with with errors due to lack of deprecated methods > and classes. > > When odb would support Qt6? odb version is 2.5.0-b.21 I will try to look into this before the next pre-release. If you can identify all the deprecated functions/classes and what should be used instead at least for one database, I can likely look into this sooner and stage a version for you to try. From tkostia.a at yandex.ru Tue Nov 23 11:59:14 2021 From: tkostia.a at yandex.ru (=?utf-8?B?0KLQsNGO0YDRgdC60LjQuSDQmtC+0L3RgdGC0LDQvdGC0LjQvQ==?=) Date: Tue Nov 23 13:12:34 2021 Subject: [odb-users] Compilation with Qt6 In-Reply-To: References: <1795311637590647@mail.yandex.ru> Message-ID: <2128821637686640@mail.yandex.ru> For sqlite:  odb/qt/containers/qlinked-list-traits.hxx: 'QLinkedList' is obsolete  odb/qt/date-time/sqlite/qdate-traits.hxx: odb/qt/date-time/sqlite/qdate-time-traits.hxx: QDateTime::setTime_t is obsolete, replace with QDateTime::setSecsSinceEpoch QDateTime::toTime_t is obsolete, replace with QDateTime::toSecsSinceEpoch   From boris at codesynthesis.com Tue Nov 30 05:51:43 2021 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Nov 30 05:49:23 2021 Subject: [odb-users] Compilation with Qt6 In-Reply-To: <2128821637686640@mail.yandex.ru> References: <1795311637590647@mail.yandex.ru> <2128821637686640@mail.yandex.ru> Message-ID: ???????? ?????????? writes: > For sqlite: > > odb/qt/containers/qlinked-list-traits.hxx: > 'QLinkedList' is obsolete > > odb/qt/date-time/sqlite/qdate-traits.hxx: > odb/qt/date-time/sqlite/qdate-time-traits.hxx: > QDateTime::setTime_t is obsolete, replace with > QDateTime::setSecsSinceEpoch > QDateTime::toTime_t is obsolete, replace with > QDateTime::toSecsSinceEpoch Thanks, that's helpful. I have a patch that addresses these issues. Could you apply it in your build and confirm everything works as expected? https://git.codesynthesis.com/cgit/odb/libodb-qt/commit/?h=qt6&id=150943426d39