[Qt-interest] Edit / Undo failed in Qt designer
K. Frank
kfrank29.c at gmail.com
Fri Mar 26 21:41:10 CET 2010
To List -
I experienced an incident where Edit / Undo failed partially in Qt designer.
(This is Qt designer version 4.6.1.)
I had a horizontal splitter (with four panels -- each a label and some sort of
widget in a vertical layout), with a horizontal layout (containing a QGroupBox,
a spacer, and a QCheckBox) above it.
I selected the horizontal layout and the horizontal splitter and attempted
to apply to them a vertical layout. For reasons I don't understand, the
widgets in the horizontal layout got laid out vertically, so I tried to use
"Edit / Undo Lay out vertically" to back up to where I was before.
After I ran "Edit / Undo Lay out vertically", the label / widget composites
in my horizontal splitter had been reordered. As far as I can tell, the only
way to fix the damage is to manually rebuild my horizontal splitter.
This seems to me to be a bug in the Qt designer's undo facility, although
perhaps I am doing something wrong with Qt designer or have incorrect
expectations. (I do believe this reordering issue has happened to me
before using undo, although in previous cases, I am less certain of the
details and sequence of events.)
Would anyone know if this is a known issue, and / or if there is anything
I can do to keep my sub-layouts from getting corrupted?
(In general, I have been struggling to use Qt designer effectively for all but
the simplest form designs. Often things don't seem to size sensibly, it
seems easy to mis-select a widget, or drop a widget in the wrong place,
and I find it nearly impossible to modify a form of any complexity without
breaking all the layouts and rebuilding it from scratch. Perhaps I'm not in
sync with the logic of Qt designer, so suggestions for documentation or
tutorial material would be welcome. I will say I haven't found the Qt Designer
Manual that is included with the standard Qt documentation to be particularly
enlightening in regard to some of these more detailed questions.)
Thanks for any advice.
K. Frank
More information about the Qt-interest-old
mailing list