[Qt-interest] How to Make a TabWidget a `CentralWidget' ?
Aaron Lewis
aaron.lewis1989 at gmail.com
Thu Apr 8 13:15:11 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
After lots of tests , i found it's problem with TabWidget , not the
MainWindow.
- -----------------
|Tab |
|Widget |
||-------------||
||Main Widget ||
||-------------||
- -----------------
That's my Problem , how to set make another Widget inside TabWidget be
central ?
Does anyone has any ideas ?
Thanks in advance !
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/
iEYEARECAAYFAku9ur8ACgkQvf41sEptMqDSEwCeNJkVAnrtULvC40OixHaETA3v
y6UAn25HwNH6F1XBfWbT8sNDheV0K2Fy
=oY0M
-----END PGP SIGNATURE-----
More information about the Qt-interest-old
mailing list