QCustomPlot Discussion and Comments

Qt 5.14 API broken QCustomPlot?Return to overview

Just updated to 5.14 and it appears to have broken compatibility with QCustomPlot.

QWeakPointer has changed
https://doc.qt.io/qt-5/qweakpointer-obsolete.html

QWheelEvent has changed
https://doc.qt.io/qt-5/qwheelevent-obsolete.html

Yes, it breaks with depreceated functions.
Fortunately fixing is not too complicated.

Oliver

@Oliver: How to fix it?

https://doc.qt.io/qt-5/qtglobal.html#QT_DISABLE_DEPRECATED_BEFORE

Set the level to something below Version 6 to make it compile. Either live with the warnings, set QT_NO_DEPRECATED_WARNINGS to supress them, or follow the hints, and replace the depreceated functions with their reccommended alternatives.

Oliver

@Oliver sorry, I am an absolute beginner, I am using Qt 5.14.1. How to set QT_DISABLE_DEPRECATED_BEFORE for this version? because QT_DISABLE_DEPRECATED_BEFORE=0x050100 means to disable functions deprecated in Qt 5.1 and earlier, If I want 5.14.1 is it QT_DISABLE_DEPRECATED_BEFORE=0x050141?

https://doc.qt.io/qt-5/qtglobal.html#QT_DISABLE_DEPRECATED_BEFORE

Oliver

Hi,

Are there plans to update the library with the fixes for the deprecated functionality?

I can probably fix the issues myself. But I would rather not change to much in the library code.

Jens

Absolutely, the next release will restore out-of-the-box compatibility with the newest Qt version.

Hi,

Thank you for your quick reply and your work of this library. Do you have a idea when you will release this version? With this information, I can update my own roadmap.

Jens