PDA

View Full Version : Can I remove / hide the border when QPushButton is highlighted / focus / active?



marstc1
29th January 2010, 12:17
Hi,

I am brand new to Qt development and I am hoping you guys might be able to help me with a GUI / Stylesheet issue.

The issue is I am trying to remove a border which appears around a button when it becomes active on my form (white approx 1px surrounded by another grey rounded approx 2px), is there a way to remove this border?

Further info, not sure if this helps ...

I am using the latest version of QT on my Windows XP machine, I am running my application on my Nokia N85 and I use the D-Pad on my phone to navigate between buttons.

I have 3 buttons on my form, I have used style sheets to remove borders and padding etc. and replace the background images to png's so they now look exactly how I want them. I have also created a section in the css for the focus state which changes the image to Image B all working as desired apart fom the border being visible when my button is highlighted.

Thanks in advance for any pointers.

Cheers


Chris

Dampas
10th November 2010, 23:34
same here... and no answer...

tbscope
11th November 2010, 06:20
You need to write a custom style.

wvrneer
4th May 2011, 14:29
the "outline: none" did it for me (qt 4.7, qtembedded 4.6.3)


QPushButton:focus {
border: none;
outline: none;
}