PDA

View Full Version : QLineEdit padding problem with QTreeWidget



Alundra
16th November 2014, 22:58
Hi,
I have this stylesheet part loaded using "App.setStyleSheet( StyleSheet );" :


QLineEdit
{
background-color: #201F1F;
border: 1px solid #3A3939;
border-radius: 2px;
color: silver;
padding: 2px;
}

All works good everywhere but not with all tree widget because of "padding: 2px;".
Image of the problem : http://zupimages.net/up/14/47/y5wz.png
How remove this problem ?
Thanks for the help

ChrisW67
17th November 2014, 19:33
Make the height tall enough to accommodate the line edit borders, padding and text. Currently it looks like the height of the item size hint is too small. If I recall correctly, the border is usually suppressed for line editors embedded as item view editors.