space between widgets in qgridlayout
I cannot get rid of space between Widget in (1,1) and layouts in (2,1) and (1,2) in QGridLayout().
Screenshoot: http://alan.umcs.lublin.pl/~mroman/S...35.00%20PM.png
Source: http://alan.umcs.lublin.pl/~mroman/qtlayout.zip
I suppose this is a bug in qt. I am running mac 10.6 qt 4.6.0.
If you comment:
trackScaleLayout->addWidget(sppSlider,0);
and
channelsScaleLayout->addWidget(trackHeightSlider,0);
then there is no space between the QTextEdit and rear layouts. This is what I want.
It actually looks better with this space on kde, but not on mac.
I would be grateful, if you take a look at it.
Re: space between widgets in qgridlayout
for me it looks like slider width is greater than scroll bar width (height in horizontal ones). Check if setMaximumWidth(16) for both , slider and scrollbar, would reduce the spacing (16 is pretty small so then you adjust this value to your needs, but check if it works)
Re: space between widgets in qgridlayout
Thanks for your suggestion. Unfortunatelly it doesn't work. QSliders get closer, but Scrolls don't. On kde it's sufficient to set AlignLeft/Top, but it doesn't seem to work on mac.
I have tried to 'wrap' these layouts in qwidgets, but it looks the same.