Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-17 Thread André Somers
Saether Jan-Arve schreef op 15-6-2014 01:17: > With the above caveats in mind, I am therefore wondering if it isn't a better > API to either strictly limit it to QGroupBox+QFormLayout hierarchies or > create a separate QWidget subclass that ensures this. > That would make it much less useful, IMH

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-17 Thread Aurélien Gâteau
Saether Jan-Arve wrote: > Hi > > I would really like to welcome the feature you present here, but I can see > that your idea has some caveats (some are sensible restrictions though), > but the API doesn't give any indication of that. > > The main caveats are: > > 1. The implementation is limite

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-17 Thread Aurélien Gâteau
Oswald Buddenhagen wrote: > On Fri, Jun 13, 2014 at 04:46:34PM +0200, Aurélien Gâteau wrote: >> Oswald Buddenhagen wrote: >> > the default orientation is meant to link the width, as i think that's >> > the by far more common case. whether one calls that horizontal or >> > vertical is an awesome bi

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-14 Thread Saether Jan-Arve
development@qt-project.org Emne: [Development] New class for QtWidgets: ColumnResizer Hi, Some time ago I created a class to help keeping columns of widgets to the same width across layouts, so that if you have two QGroupBoxes on top of each others with form layouts, then you can ensure the label

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-13 Thread Matthew Woehlke
On 2014-06-13 12:48, Oswald Buddenhagen wrote: >> Oswald Buddenhagen wrote: >>> the default orientation is meant to link the width, as i think that's >>> the by far more common case. whether one calls that horizontal or >>> vertical is an awesome bikeshed, as we have seen in various discussions >>>

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-13 Thread Oswald Buddenhagen
On Fri, Jun 13, 2014 at 04:46:34PM +0200, Aurélien Gâteau wrote: > Oswald Buddenhagen wrote: > > the default orientation is meant to link the width, as i think that's > > the by far more common case. whether one calls that horizontal or > > vertical is an awesome bikeshed, as we have seen in variou

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-13 Thread Aurélien Gâteau
Oswald Buddenhagen wrote: > On Fri, Jun 13, 2014 at 10:39:34AM +0200, Aurélien Gâteau wrote: >> Oswald Buddenhagen wrote: >> > On Thu, Jun 12, 2014 at 04:08:17PM +0200, Aurélien Gâteau wrote: >> >> Olivier Goffart wrote: >> >> > But just wondering if it would not be better to have that as an API >

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-13 Thread Oswald Buddenhagen
On Fri, Jun 13, 2014 at 10:39:34AM +0200, Aurélien Gâteau wrote: > Oswald Buddenhagen wrote: > > On Thu, Jun 12, 2014 at 04:08:17PM +0200, Aurélien Gâteau wrote: > >> Olivier Goffart wrote: > >> > But just wondering if it would not be better to have that as an API > >> > within QGridLayout such as

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-13 Thread Aurélien Gâteau
Oswald Buddenhagen wrote: > On Thu, Jun 12, 2014 at 04:08:17PM +0200, Aurélien Gâteau wrote: >> Olivier Goffart wrote: >> > But just wondering if it would not be better to have that as an API >> > within QGridLayout such as >> > QGridLayout::setAlignedWith(QGridLayout*) >> >> The class works wi

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-13 Thread André Somers
Ziller Eike schreef op 13-6-2014 09:51: > On Jun 12, 2014, at 6:51 PM, Oswald Buddenhagen > wrote: > >> On Thu, Jun 12, 2014 at 04:08:17PM +0200, Aurélien Gâteau wrote: >>> Olivier Goffart wrote: But just wondering if it would not be better to have that as an API within QGridLayout such

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-13 Thread Ziller Eike
On Jun 12, 2014, at 6:51 PM, Oswald Buddenhagen wrote: > On Thu, Jun 12, 2014 at 04:08:17PM +0200, Aurélien Gâteau wrote: >> Olivier Goffart wrote: >>> But just wondering if it would not be better to have that as an API within >>> QGridLayout such as >>> QGridLayout::setAlignedWith(QGridLayout

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-12 Thread Oswald Buddenhagen
On Thu, Jun 12, 2014 at 04:08:17PM +0200, Aurélien Gâteau wrote: > Olivier Goffart wrote: > > But just wondering if it would not be better to have that as an API within > > QGridLayout such as > > QGridLayout::setAlignedWith(QGridLayout*) > > The class works with QFormLayout as well, so I don't

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-12 Thread Aurélien Gâteau
Olivier Goffart wrote: > On Thursday 12 June 2014 15:46:42 Aurélien Gâteau wrote: >> Great to hear! >> >> Any suggestion for the class name? I have been told ColumnResizer is not >> very intuitive. > > Perhaps QLayoutAligner? I have the feeling this does not convey the idea that the class adjus

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-12 Thread Olivier Goffart
On Thursday 12 June 2014 15:46:42 Aurélien Gâteau wrote: > Great to hear! > > Any suggestion for the class name? I have been told ColumnResizer is not > very intuitive. Perhaps QLayoutAligner? But just wondering if it would not be better to have that as an API within QGridLayout such as QGrid

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-12 Thread Aurélien Gâteau
Great to hear! Any suggestion for the class name? I have been told ColumnResizer is not very intuitive. Aurélien Knoll Lars wrote: > Hi Aurélien, > > Nice. I like the idea of having something that keeps the widths > consistent. So a +1 to take it into Qt Widgets from my side :) > > Cheers, >

Re: [Development] New class for QtWidgets: ColumnResizer

2014-06-12 Thread Knoll Lars
Hi Aurélien, Nice. I like the idea of having something that keeps the widths consistent. So a +1 to take it into Qt Widgets from my side :) Cheers, Lars On 12/06/14 14:40, "Aurélien Gâteau" wrote: >Hi, > >Some time ago I created a class to help keeping columns of widgets to the >same width ac

[Development] New class for QtWidgets: ColumnResizer

2014-06-12 Thread Aurélien Gâteau
Hi, Some time ago I created a class to help keeping columns of widgets to the same width across layouts, so that if you have two QGroupBoxes on top of each others with form layouts, then you can ensure the label columns of both boxes are the same width. I proposed it for inclusion in the KWidg