It's a layout that is effectively way nicer than some little nightmares that can be found around here in nearly every toolkit/os.
but using designer is effectively a great pain (and i think is still one of the most powerful ones)
Just for fun i tried to recreate one using as little item and spacers as possible and the result is quite nice (i've uploaded it on http://www.notmart.org/misc/event.ui)
the problem is thati did it with a series of blind tryes so i don't have an "algorithm" to do it, maybe i should do some other experiment...
yeah, another hard part it's making these things not to explode when they run on a version slightly different from the one under which it was made, as usual an huge amount of testing is needed everywhere
I just worked with Designer and found it not that hard to create the second layout. I think I found a way to do it quite fast and with a lot less spacers as well
The trick is to add, say, 4 widgets and then put them in a grid layout. The, piece by piece, drag the new widgets into the already created layout. Blue or red lines will appear stating where the new widget will be placed.
The grid will grow a column or row with no problems and that may requires you to drag the right side of a widget to make it occupy an extra column. But Designer allows you to do that without breaking the layout!
There is just one annoying thing I saw; it may be hard to add a new row sometimes as the new widget just adds itself to the current row. Trick I used is to just add two widgets, where the second will increase the rowcount and then delete the one you didn't mean to add.
nice
It's a layout that is effectively way nicer than some little nightmares that can be found around here in nearly every toolkit/os.
but using designer is effectively a great pain (and i think is still one of the most powerful ones)
Just for fun i tried to recreate one using as little item and spacers as possible and the result is quite nice (i've uploaded it on http://www.notmart.org/misc/event.ui)
the problem is thati did it with a series of blind tryes so i don't have an "algorithm" to do it, maybe i should do some other experiment...
Strange When I open your
Strange:

When I open your Dialog with designer (Qt 4.2.1) an preview it, I get:
The start/end time-date fields are not properly aligned.
But in Designer it lokks like that:

corrected
now I've uploaded a saner version at the same url
Re: strange
yeah, another hard part it's making these things not to explode when they run on a version slightly different from the one under which it was made, as usual an huge amount of testing is needed everywhere
"algorithm"
would be cool if you could document how you did it - i'd like to collect good ideas and then put them in the hig as implementation suggestions/hints.
Wrote something
I've wrote a piece about that:
http://www.notmart.org/index.php/Software/Fighting_against_Qt_designer_gri
I hope it could help
Re: "algorithm"
I am still experimenting and trying to write a meaningful blog entry, when it's ready I will ping you here
Trick!
I just worked with Designer and found it not that hard to create the second layout. I think I found a way to do it quite fast and with a lot less spacers as well
The trick is to add, say, 4 widgets and then put them in a grid layout. The, piece by piece, drag the new widgets into the already created layout. Blue or red lines will appear stating where the new widget will be placed.
The grid will grow a column or row with no problems and that may requires you to drag the right side of a widget to make it occupy an extra column. But Designer allows you to do that without breaking the layout!
There is just one annoying thing I saw; it may be hard to add a new row sometimes as the new widget just adds itself to the current row. Trick I used is to just add two widgets, where the second will increase the rowcount and then delete the one you didn't mean to add.
Have fun!
aah!
thanks for the hint - will try that later!
HIG
nice work!
i'd say some tips and hints should end up in the KDE HIG, linking to this (and the previous?) blog would be nice as well?!?