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.
    radius-dirt
    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.


  • Qt Champions 2016

    Hi
    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


  • Qt Champions 2016

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

    Could try to look at your buttons borders with
    "C:\Qt\5.9.1\msvc2015_64\bin\pixeltool.exe"
    (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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.