Hi,
Yes you're right THRES but unfortunately that's what I have been doing since 2 weeks.
I will try your solution and report back to you as soos as possible.
Regards,
Hi,
Yes you're right THRES but unfortunately that's what I have been doing since 2 weeks.
I will try your solution and report back to you as soos as possible.
Regards,
Hi,
Sorry for the late response, but it didn't work either.
Regards.
Maybe you can try a different approach with setPalette(). The palette is inherited from the parent, so if you set the right palette of the frame that is equivalent to the palette that is applied on a pressed button it might work.
Hi,
I didn't try the palette because it should work by doing,
myMainFrame.setStyleSheet(" QPushButtonressed{ background-color: red; border-style: outset; }");
When I do it from the designer button by button it works OK but from my application's main method, it doesn't. More interestingly, border stuffs work but background-color.
Any more ideas?
Last edited by zgulser; 17th February 2009 at 07:55.
Try this
Qt Code:
button->setStyleSheet( "QPushButton {color:white; background:rgb(255,255,0); border-radius:10px; font:bold 16px; font-family:\"Arial\";}" "QPushButton:Pressed {padding-left: 5px; padding-top: 5px;}" );To copy to clipboard, switch view to plain text mode
Bookmarks