[Qt-interest] How to Make a TabWidget a `CentralWidget' ?

Aaron Lewis aaron.lewis1989 at gmail.com
Thu Apr 8 07:14:43 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think i've got the problem.

QTabWidget is the central Widget anyway , but inside the Tab , i've
another mainLayout (morphed into Widget).

But still not sure of the behaviour , so please see Attachment.

Notice the border of TabWidget , i don't think it's the border of the
mainLayout inside it , if just do comments for the picture.

Does anyone has any ideas ?

On 04/06/2010 10:41 PM, Luis Lezcano Airaldi wrote:
> 2010/4/6 Aaron Lewis <aaron.lewis1989 at gmail.com>:
>> Thanks Diego,i should've be more specific.
>>
>> Before i want to try with TabWidget , i use a `mainLayout' as layout
>> (QHBox , QVBOX , etc.) ,  and morph it into a QWidget.
>>
>> In construct function:
>>
>> mainw::mainw(QWidget *parent) :
>>    QMainWindow(parent),
>>    ui(new Ui::pangolin)
>> {
>>    ui->setupUi(this);
>>    setCentralWidget(ui->tabWidget);
>> }
>>
>> That's all my Code , not working this time.
> 
> Why is it not working? Do you get any compiler errors/warnings or
> execution time messages?
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest


- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku9ZkMACgkQvf41sEptMqBQzwCgyUinP8/BBzRRp//MVzPTpYV2
zOEAnAiHZfSZa5Nmh/OVvbwMAkW5UrS1
=T0mr
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: up.jpg
Type: image/jpeg
Size: 14983 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100408/37fe5b45/attachment.jpg 


More information about the Qt-interest-old mailing list