[Qt-interest] I can't see the widgets defined in the tab pages.

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Mon Jul 11 14:35:35 CEST 2011


QList<QScrollArea *> areas;
QList<QWidget *>pages;

class CTabWig : public QTabWidget
{
     Q_OBJECT
public:
  CTabWig() ;
  ~CTabWig() { }
};

CTabWig::CTabWig() {

for(int i=0; i<10; i++)
 {
    areas.append(new QScrollArea(this));
    addTab(areas.at(i),names.at(i));
    pages.append(new QWidget(areas.at(i)));
    areas.at(i)->setWidget(pages.at(i));
  }

}
//////////////////////////////////////////////////////////////////////////////////////////
where names.at(i) are some QStrings generated...they have valid value.

But I cannot see any widgets that are defined in the pages. In these pages I
have many widgets defined. Ican't see them only I can see the tabs with thei
names. Whats wrong in this can anyone help me pls. Thanks sujan


-- 
Thanks & Regards
Sujan Dasmahapatra
B.E. (Aeronautics)
Bangalore, India
Ph:91-9900839788
mail id : sujan.dasmahapatra at gmail.com
yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
icq # 556023244
skype:sujan.dasmahapatra at skyepe.com
msn: sujan.dasmahapatra at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110711/24d0a537/attachment.html 


More information about the Qt-interest-old mailing list