[Qt-interest] QLayoutItem Color

Leonardo M. Ramé l.rame at griensu.com
Fri Sep 24 14:23:05 CEST 2010


Hi, I need to create a QGridLayout forming a grid without widgets, just
the layout where each "cell" (QLayoutItem) has a background color.

Now, each time I want to create a "cell" in my layout, I add a widget
this way:

layout->addWidget(new myWidget(), x, y);

Is it possible to assign widgets to layout items after the layout items
were created?. How can I assign a background color to a QLayoutItem?.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Qt-interest-old mailing list