| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 3 | |
Hi,
I tried the example of http://doc.trolltech.com/4.2/stylesheet.html
---
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qApp->setStyleSheet("QPushButton {background-color: red; border-style:
outset; border-width: 2px; border-radius: 10px;border-color: beige;font:
bold 14px; min-width: 10em; padding: 6px;}");
QPushButton button;
button.show();
return app.exec();
}
---
I get indeed a rounded border, but the background isn't rounded. You can
see a screenshot here: http://www.myimg.de/?img=screen48e9.png
I used different versions (4.2, 4.2.2, 4.3) with no other result. If I
try the Stylesheet at the designer it works well, when I preview it.
After compiling the background is not rounded anymore.
I'm using Ubuntulinux.
Thanks for your help
Attachment:
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
Message 2 in thread
This is a known issue. See task 134573 using
http://www.trolltech.com/developer/task-tracker
You can currently work around this by using a similarly shaped pixmap as
the background-image.
> Hi,
> I tried the example of http://doc.trolltech.com/4.2/stylesheet.html
...
>
> I get indeed a rounded border, but the background isn't rounded. You can
> see a screenshot here: http://www.myimg.de/?img=screen48e9.png
>
> I used different versions (4.2, 4.2.2, 4.3) with no other result. If I
> try the Stylesheet at the designer it works well, when I preview it.
> After compiling the background is not rounded anymore.
> I'm using Ubuntulinux.
>
> Thanks for your help
>
--
[ signature omitted ]