Hi All
When i click on my push button a red rectangle is displayed on top of the button. How to remove that color
Regards
Hi All
When i click on my push button a red rectangle is displayed on top of the button. How to remove that color
Regards
Last edited by in_dbasu; 18th June 2012 at 14:54.
Hi
I attached the screen shot of widget. In 1st column 2nd button you can see a red rectangle on top of the button which i clicked
All the pushbutton are custom made.
Regards
If its custom made button, you should track its paintEvent. Or are stylesheets used ?
Hi
I Only used style sheets.
Regards
Hi
this is my code
MyPushButton::MyPushButton(QWidget *parent) : QPushButton(parent)
{
MyPushButton::setFixedSize(115, 115);
MyPushButton::setStyleSheet ("background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #649600, stop: 0.9 #000000); border:none; border-radius: 20px;color: #964600;");
QFont f("Arial", 14);
MyPushButton::setFont(f);
}
There must be another place where you are setting stylesheet... probably on hover or focus case.
Hi
I am not using both hover or focus case but still i guess internally hover or focus function is getting called.
Bookmarks