Qt-interest Archive, July 2007
Smashed icons
Message 1 in thread
Im at a loss as to why my icons in a layout I have are
being displayed smashed vertically, and even horizontally
on variations of things Ive tried to do.
I have 2 layout rows stacked vertically in a QVBoxLayout.
The top row is a QStackedLayout consisting of "pages" of
QHBoxLayouts, the bottom row is a single HBoxLayout.
The stacked layout icons are the problem. The second row
icons are just fine. Ive tried setIconSize, setSizePolicy,
stretch factors and margins, but nothing seems to fix
the problem.
As a sidenote and a second problem, this entire widget I
descibed above is set in a QMainWindow which is in a
horizontal splitter. If I slide the spliiter window,
both rows described above stretch out. Ive tried to
keep it 'butted' together with setStretchFactor and
setColumnStretch, setSpacing and whatever else I could
find to no avail.
Has anyone else seen this type of behavior and how to
fix either problem? If the bossman allows, Im going to
try to wip up a small example to prove the problem.
Thanks,
Jeff
--
[ signature omitted ]