Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, May 2008
Access layout properties in Designer for QTabWidget and QStackedWidget


Message 1 in thread

Hi,

I am designing a form in Designer. I am using a QStackedWidget inside a 
QTabWidget. The problem is, that each of these seems to keep it's own 
internal margins, so the total margin for the widgets on the QStackedWidget 
to the border of the QTabWidget is twice as big as I'd like. On the form 
itself, you can get access to the layout properties, including things like 
the margins, but I do not get the layout properties in the Property Editor 
for the QTabWidget or the QStackedWidget. Can anyone please point me in the 
right direction on how to get rid of these unwanted margins from Designer?

Thanks,

André
 

--
 [ signature omitted ] 

Message 2 in thread

Have a look at the page QWidgets in your QTabWidgets/QStackedWidgets - you can't select them on the form, you'll have to select them in the object hierarchy tree.

Those have the margins you want to set to zero.

Cheers,
Peter

> -----Ursprüngliche Nachricht-----
> Von: André Somers [mailto:andre@xxxxxxxxxxxxxxxx] 
> Gesendet: Freitag, 30. Mai 2008 11:54
> An: qt-interest@xxxxxxxxxxxxx
> Betreff: Access layout properties in Designer for QTabWidget 
> and QStackedWidget
> 
> Hi,
> 
> I am designing a form in Designer. I am using a 
> QStackedWidget inside a 
> QTabWidget. The problem is, that each of these seems to keep it's own 
> internal margins, so the total margin for the widgets on the 
> QStackedWidget 
> to the border of the QTabWidget is twice as big as I'd like. 
> On the form 
> itself, you can get access to the layout properties, 
> including things like 
> the margins, but I do not get the layout properties in the 
> Property Editor 
> for the QTabWidget or the QStackedWidget. Can anyone please 
> point me in the 
> right direction on how to get rid of these unwanted margins 
> from Designer?
> 
> Thanks,
> 
> André

--
 [ signature omitted ] 

Message 3 in thread

Hi Peter,

"Peter Prade" <prade@xxxxxxxxxxx> wrote in message 
news:1C5B9B48EC79514FB4F4A7884ACFCB9F3CB9F9@xxxxxxxxxxxxxxxxxxxxxxx
> Have a look at the page QWidgets in your QTabWidgets/QStackedWidgets - you 
> can't select them
> on the form, you'll have to select them in the object hierarchy tree.

Ah, excellent!
Thanks.

André 

--
 [ signature omitted ]