From 0d20c7f9b282f83d6359d877f5a761a3b99c15aa Mon Sep 17 00:00:00 2001 From: HinGwenWoong Date: Tue, 25 Jan 2022 15:28:48 +0800 Subject: [PATCH] Fixed: iconlist tool tip background color is black. --- PPOCRLabel/PPOCRLabel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 4ef274a1..37b70fcc 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -269,7 +269,8 @@ class MainWindow(QMainWindow): self.iconlist.setMovement(QListView.Static) self.iconlist.setResizeMode(QListView.Adjust) self.iconlist.itemClicked.connect(self.iconitemDoubleClicked) - self.iconlist.setStyleSheet("background-color:transparent; border: none;") + self.iconlist.setStyleSheet("QListWidget{ background-color:transparent; border: none;} " + "QToolTip{ background-color: gray }") self.iconlist.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.nextButton = QToolButton() self.nextButton.setIcon(newIcon("next", 40)) -- GitLab