On Tue, 20 Jun 2006, Guillaume Laurent wrote: > Martin Shepherd wrote: >> Agreed. In my working copy, I now have the Segment parameters aligned >> with the top left corner. After hunting fruitlessly for child >> alignment options within frames, I ended up doing this by adding an >> empty row at the bottom, and an empty column at the right of the >> Segment Parameters grid layout, and configured both of these to use up >> extra space in their respective directions. > By 'empty row/column' you mean QSpacerItems ?
Nope. To get an empty row below the populated rows, I simply told the QGridLayout constructor that I needed an extra row, which I then didn't add any widgets to. To make this absorb any extra vertical space, I then applied setRowStretch() to the vacant row, with a non-zero value, while leaving all of the populated rows with the default row-stretch value of 0. I hadn't come across QSpacerItem's in my search. Would the correct approach have been to create the same extra row, but instead of applying setRowStretch() to it, add a QSpacerItem to that row? Note that I'm trying to figure out how to use Qt, by looking through the list of classes on trolltech's site, and I have yet to find any general descriptions there of how these widgets are intended to be combined, apart from a few simple tutorials that don't cover much. >> I have also taken the >> liberty of getting rid of a redundant QHBox around the segment-name >> label and its pushbutton, laid these out with the existing grid >> manager of the Segment parameters box, and changed the pushbutton's >> label from "..." to "Edit", which seems more intuitive to me. >> > But '...' is more or less standard... I'll put it back if you like, but what does it mean? I've never seen anything like it in any other program. In fact, it was so unobvious to me what it might be for, that I had never pressed it to find out, before today. Thus today, when I saw what it did in the code, I just figured that the author must have being trying to save space with a short button title. Martin _______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel