1

While customizing QToolTip using:

app.setStyleSheet("QToolTip {
font-size:9pt;
color:white; padding:2px;
border-width:2px;
border-style:solid;
border-radius:20px;
background-color: black;
border: 1px solid white;}");

the white border-outline is properly rounded with border-radius:20px;. But the QToolTip main frame still has the sharp edges.

How to round the entire QToolTip frame and not just the white frame outline border?

Here is the image showing the problem:

enter image description here

alphanumeric
  • 17,967
  • 64
  • 244
  • 392

1 Answers1

-3

Add overflow:hidden like below.

 app.setStyleSheet("QToolTip {
  font-size:9pt;
  color:white; padding:2px;
  border-width:2px;
  border-style:solid;
  border-radius:20px;
  background-color: black;
  border: 1px solid white;
  overflow:hidden;}");
Suresh Ponnukalai
  • 13,820
  • 5
  • 34
  • 54