i use CSS,but not succeed.
QToolButtonressed {
position:absolute;
top: 20px;
left: 50px; /* shift it a bit */
}
i use CSS,but not succeed.
QToolButtonressed {
position:absolute;
top: 20px;
left: 50px; /* shift it a bit */
}
Hi,
You can do it as chenxuelian suggested, but if you want all your tool buttons to have this property, you can do something like the following;
Qt Code:
QString styleSheet = "QToolButton:pressed{ position:absolute;top: 20px;left: 50px; /* shift it a bit */ };"To copy to clipboard, switch view to plain text mode
thanks for your answer,but useing css not succeed
Bookmarks