I still do not know what is causing the problem. However, I was able to circumvent the problem: Instead of setting the pixmap in designer, I loaded each SVG as a QIcon file and manually assigned this icons pixmap to the label. This is the code:
In header
QSize status_icon_size_hint;
QIcon status_icon_good;
QSize status_icon_size_hint;
To copy to clipboard, switch view to plain text mode
in source
status_icon_good(":/qkascha/icons/status_good.svg"),
status_icon_size_hint(48, 48)
{
ui->label_main_modus_icon->setPixmap(status_icon_good.pixmap(status_icon_size_hint));
status_icon_good(":/qkascha/icons/status_good.svg"),
status_icon_size_hint(48, 48)
{
ui->label_main_modus_icon->setPixmap(status_icon_good.pixmap(status_icon_size_hint));
To copy to clipboard, switch view to plain text mode
Since I am changing the icons anyhow, this is not much of the problem. Besides that, the code is really simple. However, it is circumventing the problem, not solving it. But it has to do it for now.
Bookmarks