Hi everyone,
i have some questions to ask you.when a toolbutton pressed, as everyone know, it moves down 1px.
but i want to get an effect that when a toolbutton pressed ,it moves up 1px.please ,how can i do.
Hi everyone,
i have some questions to ask you.when a toolbutton pressed, as everyone know, it moves down 1px.
but i want to get an effect that when a toolbutton pressed ,it moves up 1px.please ,how can i do.
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