This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to get correctly Kirigami theme colors?

Tags: None
(comma "," separated)
tubbadu
Registered Member
Posts
21
Karma
0
Hello! 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:

Code: Select all
#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?

thanks in advance!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]