How do I customise the appearance of links in QLabels using style sheets?

前端 未结 4 2019
盖世英雄少女心
盖世英雄少女心 2021-02-12 23:24

I have a QLabel with a Qt stylesheet that sets a dark background:

QLabel {
background: black;
color: white;
}

This works fine unt

4条回答
  •  梦毁少年i
    2021-02-12 23:46

    Short answer is no. Recently I had to do this.

    1. QLabel!visited doesn't work because Qt doesn't track whether QLabel were visited or not.
    2. QLabel { color: ... } doesn't work for links. Can't find why but all I found is a suggestion to use QPallete in this case.

提交回复
热议问题