| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 4 | |
I don't know if anyone is still interested, but I've implemented a QGridSplitter which does everything I described in my previous email (see below), except I can't figure out how to get the QGridLayout to actually resize a row/column. QGridLayout::setRow/ColSpacing() only sets the minimum size but doesn't actually update anything. I hope I don't have to roll my own Layout.... On 11/24/06, c sklu <cskludev@xxxxxxxxx> wrote: > Hi, > > This is also what I've been looking for and although a QuadSplitter is > a big improvement, thinking more generally it would be nice to have > the number of splitters match the dimension of a GridLayout. I started > implementing this myself but eventually got distracted by other > things.... > > Chris > > On 11/24/06, Rodolfo Martinez <macr111080@xxxxxxxxxxxx> wrote: > > > > Hi Jesús > > > > Attached is a very basic QQuadSplitter. > > > > I hope it helps. > > Regards, > > Rodolfo Martinez. > > > > > > ----- Original Message ---- > > From: Jesús Spínola <jspinola@xxxxxxxxx> > > To: qt-interest@xxxxxxxxxxxxx > > Sent: Friday, November 24, 2006 4:37:54 AM > > Subject: QSplitter like a "grid" splitter [Using qt 4.1] > > > > Hi, > > > > my problem is the following > > > > I have several widgets I want to layout in a grid style and I also want to > > have the QSplitter sizing features. > > > > With QSplitter i only can layout the widgets horitzontally or vertically but > > not in a grid with a handle in the centre to resize the widgets at the same > > time. > > > > For example, if I have 4 widgets like this picture > > > > ----------------- > > | | | > > | | | > > --------+-------- > > | | | > > | | | > > ----------------- > > if I move the handle in the centre to the right then > > ----------------- > > | | | > > | | | > > ------------+---- > > | | | > > | | | > > ----------------- > > > > if I move the handle in the centre down then > > ----------------- > > | | | > > | | | > > | | | > > ------------+---- > > | | | > > ----------------- > > > > I've seen this kind of feature in some windows app's but I don't know if > > this is possible using qt 4.1. > > > > I would like to know if there's a way to do that with the actual > > QSplitter's. Although if somenone has tried something similar and can give > > some hints to do it with another classes to get a similar result > > > > Thanks. > > > > > > ________________________________ > > Everyone is raving about the all-new Yahoo! Mail beta. > > > -- [ signature omitted ]
And here's the code... On 1/23/07, c sklu <cskludev@xxxxxxxxx> wrote: > I don't know if anyone is still interested, but I've implemented a > QGridSplitter which does everything I described in my previous email > (see below), except I can't figure out how to get the QGridLayout to > actually resize a row/column. QGridLayout::setRow/ColSpacing() only > sets the minimum size but doesn't actually update anything. I hope I > don't have to roll my own Layout.... > > On 11/24/06, c sklu <cskludev@xxxxxxxxx> wrote: > > Hi, > > > > This is also what I've been looking for and although a QuadSplitter is > > a big improvement, thinking more generally it would be nice to have > > the number of splitters match the dimension of a GridLayout. I started > > implementing this myself but eventually got distracted by other > > things.... > > > > Chris > > > > On 11/24/06, Rodolfo Martinez <macr111080@xxxxxxxxxxxx> wrote: > > > > > > Hi Jesús > > > > > > Attached is a very basic QQuadSplitter. > > > > > > I hope it helps. > > > Regards, > > > Rodolfo Martinez. > > > > > > > > > ----- Original Message ---- > > > From: Jesús Spínola <jspinola@xxxxxxxxx> > > > To: qt-interest@xxxxxxxxxxxxx > > > Sent: Friday, November 24, 2006 4:37:54 AM > > > Subject: QSplitter like a "grid" splitter [Using qt 4.1] > > > > > > Hi, > > > > > > my problem is the following > > > > > > I have several widgets I want to layout in a grid style and I also want to > > > have the QSplitter sizing features. > > > > > > With QSplitter i only can layout the widgets horitzontally or vertically but > > > not in a grid with a handle in the centre to resize the widgets at the same > > > time. > > > > > > For example, if I have 4 widgets like this picture > > > > > > ----------------- > > > | | | > > > | | | > > > --------+-------- > > > | | | > > > | | | > > > ----------------- > > > if I move the handle in the centre to the right then > > > ----------------- > > > | | | > > > | | | > > > ------------+---- > > > | | | > > > | | | > > > ----------------- > > > > > > if I move the handle in the centre down then > > > ----------------- > > > | | | > > > | | | > > > | | | > > > ------------+---- > > > | | | > > > ----------------- > > > > > > I've seen this kind of feature in some windows app's but I don't know if > > > this is possible using qt 4.1. > > > > > > I would like to know if there's a way to do that with the actual > > > QSplitter's. Although if somenone has tried something similar and can give > > > some hints to do it with another classes to get a similar result > > > > > > Thanks. > > > > > > > > > ________________________________ > > > Everyone is raving about the all-new Yahoo! Mail beta. > > > > > >
Attachment:
Attachment:
qtgridsplitter.tgz
Description: GNU Zip compressed data