I set the attributes with stylesheet:
pb_Down->setStyleSheet("border-image: url(:/ArrowKey/Down_Default.jpg);border-width: 1px;border-style: solid; border-radius: 4px;");
pb_Down->setStyleSheet("border-image: url(:/ArrowKey/Down_Default.jpg);border-width: 1px;border-style: solid; border-radius: 4px;");
To copy to clipboard, switch view to plain text mode
when push button is clicked it becomes red inside and border is shown as written above. When button released I want the button to get back to its normal shape, not red anymore. for this I am using
pb_Jack1Up->setFocusPolicy(Qt::FocusPolicy);
pb_Jack1Up->setFocusPolicy(Qt::FocusPolicy);
To copy to clipboard, switch view to plain text mode
inside released slot (we're dealing with pressed() and released() slots), but this gives the error:
error: expected primary-expression before ')' token
how to resolve this?
Bookmarks