QFontMetrics::horizontalAdvance() only exists since Qt 5.11.
So switch back to QFontMetrics::width() when building with lower versions.
BUG: 409737
chehrlic |
QFontMetrics::horizontalAdvance() only exists since Qt 5.11.
So switch back to QFontMetrics::width() when building with lower versions.
BUG: 409737
Builds fine now with Qt 5.9.x and 5.13.0.
Lint Skipped |
Unit Tests Skipped |
Btw, on an unrelated note:
I just noticed that it doesn't actually specify a minimum Qt version, even though it seems to be the intention:
set(QT_MIN_VERSION 5.9.0) find_package(Qt5 REQUIRED COMPONENTS Core DBus Gui Sql Widgets Xml )