Hi Laura, 

 

A Qt layout is not a widget, so it can't draw anything itself.   I would use
a QFrame with the style set to draw the background gradient, then add the
layout and child widgets.  

 

Hope that helps, 

 

Tony

 

 

From: interest-bounces+tony=rightsoft.com...@qt-project.org
[mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of
Laura Rodríguez Pérez
Sent: Wednesday, 1 May 2013 12:21 AM
To: interest@qt-project.org
Subject: [Interest] gradients and Layouts ...

 

Hi … I’m interested in creating a QT Layout with a gradient background in
the same manner as the QTCreator section headers ( the ones with the black
gradients ).  I’m currently diggin’ through the documentation but haven’t
been able to come up with anything related …

 

Can you point me in the right direction ??

 

Thanks …

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to