Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

How to use deprecated functions in Qt5

$
0
0
Hi, I am trying to build my application with Qt5, while keeping the source compatible to Qt4. I already have an idea how to do this in the project file and how to deal with the includes. Now I would like to use deprecated functions like QHeaderView::setResizeMode(). I have tried the QT_DISABLE_DEPRECATED_BEFORE [qt-project.org] macro but I still cannot use the deprecated functions. .pro file: QT_DISABLE_DEPRECATED_BEFORE=0x04000000 Is it possible to call deprecated functions, or would I have to make a custom build to do this?

Viewing all articles
Browse latest Browse all 13965

Trending Articles