Hi Guys,
I have created a customised QWidget and now I want a border around it. So I have used stylesheet to do that using following bit of code.

Qt Code:
  1. QString String = "border: 2px solid black;";
  2. setStylesheet(String );
To copy to clipboard, switch view to plain text mode 

The above code is drawing border around all the child widget of that customised widget. But I dont want that. I want just a single border around the customised widget. Is that possible without using the paint event?

Thanks.
Chandan