Hello! I just signed up to KDE Discuss, I hope this is the right place to post this. This is probably a stupid question but I’m struggling to make this work. In my C++ class I’m trying to get Kirigami::PlatformTheme::linkColor, so I tried this:
#include <Kirigami/PlatformTheme>
...
Kirigami::PlatformTheme* theme = new Kirigami::PlatformTheme;
qWarning() << "color: " <<theme->linkColor();
but I’m getting color: QColor(Invalid). What am I doing wrong?
I have always worked with QML only and just a bit of C++, but now I’m trying to implement a custom QSyntaxHighlighter and need to access system colors.
thanks in advance!