Qt World Summit: Register Today!

QPushButton smooth vertices

  • Hi!
    I have QPushButtons in my application and I applied a stylesheet to make a custom appearance. But on my monitor (15 inches, 1366x768 resolution) the result looks poorly on the vertices.
    Because of border-radius: 10px;, artifacts, which look like blured stair-step "dirt" on vertices, appeared. So, I need to make it smooth. Any ideas how to achieve this?
    Thanks in advance.
    P.S. Sorry, if you can't see these artifacts clearly on the attached image - I took the screenshot with standard PrintScreen and saved in PNG in Paint. Maybe it compressed the image by itself, maybe postimage.org compresses images on upload.

  • Lifetime Qt Champion

    Do you mean the round edges ?`
    alt text

    Unless they are not antialiased for some reason, i doubt there is much you can do to make them look smoother.

    how does this look on same monitor ?
    alt text

  • @mrjj
    your image is displayed without any artifacts and yes, English isn't my native language, so I meant "edges" :D

  • Lifetime Qt Champion

    ok, its antialiased. (the circle)
    Does the "pushbutton" also look ok?

    Could try to look at your buttons borders with
    (if mingw compiler, its other folder)

    My best guess its either not antialiased or the effect is not good due
    to transparency or other reasons.

Log in to reply