Re: [Wengophone-devel] TabWidget Border
Jaya Meghani wrote: Hi, I want to know how to remove the border around the QTabWidget. I want to remove border from WengoPhoneWindow.ui For Example with widgets inheriting from QFrame you can set QFrame::NoFrame. I tried to derive a class from QTabWidget and override the PaintEvent method to draw rect around the TabWidget with QPalette::Window color. But not satisfied with results. Just an idea: if you can't achieve what you want with QTabWidget, you can try another (longer) way: combine a QTabBar (which is just a row of tabs without attached pages) and a QStackedWidget. This should give you more flexibility. Aurélien ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
RE: [Wengophone-devel] TabWidget Border
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: wengophone-devel@lists.openwengo.com 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 ( 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 Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
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 ( 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 PGP.sig Description: Ceci est une signature électronique PGP ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
RE: [Wengophone-devel] TabWidget Border
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 ( int, int, int, int ) function in documentation. Is this what you are talking about? Thanks for reply From: Philippe BERNERY [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 10:32 AM To: Jaya Meghani Cc: wengophone-devel@lists.openwengo.com Subject: Re: [Wengophone-devel] TabWidget Border Le 14 déc. 06 à 16:26, Jaya Meghani a écrit : Hi, I want to know how to remove the border around the QTabWidget. I want to remove border from WengoPhoneWindow.ui For Example with widgets inheriting from QFrame you can set QFrame::NoFrame. I tried to derive a class from QTabWidget and override the PaintEvent method to draw rect around the TabWidget with QPalette::Window color. But not satisfied with results. Please let me know if there is any better way of doing it? You should be able to do that by setting a margin of 0 in QtDesigner -- Philippe BERNERY <[EMAIL PROTECTED]> http://dev.openwengo.org ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
Re: [Wengophone-devel] TabWidget Border
Le 14 déc. 06 à 16:26, Jaya Meghani a écrit : Hi, I want to know how to remove the border around the QTabWidget. I want to remove border from WengoPhoneWindow.ui For Example with widgets inheriting from QFrame you can set QFrame::NoFrame. I tried to derive a class from QTabWidget and override the PaintEvent method to draw rect around the TabWidget with QPalette::Window color. But not satisfied with results. Please let me know if there is any better way of doing it? You should be able to do that by setting a margin of 0 in QtDesigner -- Philippe BERNERY <[EMAIL PROTECTED]> http://dev.openwengo.org PGP.sig Description: Ceci est une signature électronique PGP ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
[Wengophone-devel] TabWidget Border
Hi, I want to know how to remove the border around the QTabWidget. I want to remove border from WengoPhoneWindow.ui For Example with widgets inheriting from QFrame you can set QFrame::NoFrame. I tried to derive a class from QTabWidget and override the PaintEvent method to draw rect around the TabWidget with QPalette::Window color. But not satisfied with results. Please let me know if there is any better way of doing it? Thanks Much ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel