[Qt-interest] QGridview of custom QWidgets
Leonardo M. Ramé
l.rame at griensu.com
Wed Sep 22 17:32:03 CEST 2010
On 2010-09-22 10:12:59 +0200, Frank Lutz wrote:
> Mainly you can put Widgets on Layout, or Layouts on Widgets. When you
> use one of them you have to look if there is a methode addLayout, or
> addWidget.
> See like Layout ist the grid and Layout the items on it. But Layouts
> could also have new Layouts were do have items into it.
>
>
> Like:
> QHBoxLayout *lay = new QHBoxLayout;
> QButtom *btn = new QButton;
> lay->addWidget(btn);
>
> greetings
> Frank
Thanks Frank, that's the way to do it.
--
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the Qt-interest-old
mailing list