Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Just like below,
I have a QTreeWidget, and I want set the text-decoration: underline like css in a QTreeWidgetItem when I hover over it, but qss don't suport the text-decoration, can someone give me any advice?
text-decoration: underline
text-decoration
In the same slot in which you change the cursor call
QFont oldFont = treeItem->data(0,Qt::FontRole).value<QFont>(); oldFont.setUnderline(!oldFont.underline()); treeItem->setData(0,Qt::FontRole,oldFont);
@VRonin Thanks a lot ,, successed.