
Originally Posted by
zgulser
Brother then just change as the following;
QToolButton:hover
{
border: 2px solid #8f8f91;
border-radius: 6px; // not necessary
image: url("yourimage.jpg");
}
This is for hover. Apply it to other pseudo states by just replacing hover with selected, focused or something.
No its not working this way. I tried like
{
image: url(":/resource/Icons/Contents_Monitor_Close_Icon_N.png");
}
{
image: url(":/resource/Icons/Contents_Monitor_Close_Icon_D.png");
}
{
image: url(":/resource/Icons/Contents_Monitor_Close_Icon_F.png");
}
{
image: url(":/resource/Icons/Contents_Monitor_Close_Icon_F.png");
}
QToolButton
{
image: url(":/resource/Icons/Contents_Monitor_Close_Icon_N.png");
}
QToolButton:pressed
{
image: url(":/resource/Icons/Contents_Monitor_Close_Icon_D.png");
}
QToolButton:focused
{
image: url(":/resource/Icons/Contents_Monitor_Close_Icon_F.png");
}
QToolButton::indicator
{
image: url(":/resource/Icons/Contents_Monitor_Close_Icon_F.png");
}
To copy to clipboard, switch view to plain text mode
Bookmarks