PDA

View Full Version : Adding Widgets to QFrame



macmos
28th September 2012, 15:06
Hi everyone.

I have a QFrame that I want to add a form to. The form contains lineEdits, textEdits, some labels and some buttons. When I set the QFrame to have a border and a border radius, all the elements of the form behaves the same manner (that is, having the border and the border radius). I don't want that to happen. I just need the frame alone to have those properties. Please can anyone help me achieve this with QFrame. If it is not possible with QFrame, is there any other Qt container widgets that can help me achieve this?

Thanks a lot

pradeepreddyg95
28th September 2012, 16:41
in Stylesheet write this

#MyFrame{
border:2px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border: 1px solid black;
background: lightblue;
}
this will work ....