I got the code in QtContactList.cpp for Mac OS X. If I write _ui->tabWidget->layout()->setMargin(10); in QtWengoPhone.cpp then exe crashes. However if I write if(NULL != _ui->tabWidget->layout())
_ui->tabWidget->layout()->setMargin(10); then it runs fine.I think setMargin only changes the margin of layout in which tab widget is contained - like horizontal/vertical/grid layout and not the TabWidget. Please correct me if I am wrong. Thanks ________________________________ From: Philippe BERNERY [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 1:03 PM To: Jaya Meghani Cc: [email protected] Subject: Re: [Wengophone-devel] TabWidget Border Le 14 déc. 06 à 17:07, Jaya Meghani a écrit : Hi, I donot find any "Margin" property in designer for QTabWidget. I am using QT Open Source Edition 4.1.2 However I see setContentsMargins <outbind://18/qwidget.html#setContentsMargins> ( int, int, int, int ) function in documentation. Is this what you are talking about? Have a look at QLayout::setMargin. We use in QtContactList.cpp for Mac OS X (look for OS_MACOSX in the file). -- Philippe BERNERY <[EMAIL PROTECTED]> http://dev.openwengo.org
_______________________________________________ Wengophone-devel mailing list [email protected] http://dev.openwengo.com/mailman/listinfo/wengophone-devel
