Hello
How I can disable the borber around the QPushButton when it's focused in Symbian 3rd devices?
I tried with stylesheet ( border : 0px; ) but it doesn't work.
I would like to disable borders like the one around Button 1:![]()
Hello
How I can disable the borber around the QPushButton when it's focused in Symbian 3rd devices?
I tried with stylesheet ( border : 0px; ) but it doesn't work.
I would like to disable borders like the one around Button 1:![]()
Last edited by kenouz1234; 2011-01-09 at 01:01.
Try setFocusPolicy property:
Code:setFocusPolicy(Qt::NoFocus);
I think you set a style for the :focus pseudo-state.
Hello man, Focus Policy from the Button properties is the only thing i know,other than that i found no other way with css,when the button comes under focus
Cheers,
ZeroSum
There may be a way if you write your own painter or style or some such.
Hey,
Try calling following line whenever button is focussed
Regards,btn->setDown ( false )
PS: Before posting do try wiki search to save your time and effort:
http://wiki.forum.nokia.com/index.php/Wiki_Home
This might work.
Set the QPalette::Text for all QFocusFrames to Qt::transparent in your application. Store the changed palette back to your app palette.
I.e. something like (note didn't try to compile this)
Code:QPalette widgetPalette = QApplication::palette(); widgetPalette.setColor(QPalette::Text, Qt::transparent); QApplication::setPalette(widgetPalette, "QFocusFrame");
this work, finally
thank you very much Fuzzbender.
and I found that someone reported a bug about this problem here: http://bugreports.qt.nokia.com/browse/QTBUG-16027
thank you again![]()
Last edited by kenouz1234; 2011-01-13 at 00:22.