[Qt-interest] Columns and Row Problem ??

Sujan Dasmahapatra sdh at lmglasfiber.com
Tue Mar 17 07:45:02 CET 2009


Dear Friends.

 

I am loading geometris on the screen  one by one and their names are
being uploaded on the treeWidget. But according to my implementation
this geometry's name are coming columns wise. How could I make them to
appear row wise like one below another.Please have a look at my
implementation.

 

 

class TreeWidget:public QTreeWidget

{

Q_OBJECT

Public:

TreeWidget();

void fileNameUpdate(QString filename);

private:

                int count;

                QTreeWidgetItem  *item;


}; 

 

 

TreeWidget::TreeWidget()

{

                count = 0;

                Item = new QTreeWidgetItem(this);

}

 

TreeWidget::fileNameUpdate(QString filename)

{

            setColumnCount(count);

            item->setText(count,filename);

            count++;

            

}

 

Can anybody  tell me how could I make my items to appear rowwise...one
below other.

 

 

Kind regards, 
LM Glasfiber R&D (India) Pvt. Ltd.
 
Sujan Dasmahapatra
Project Engineer - CFD
  
Telephone: +91 80 66470248 
Mobile: 
E-mail: sdh at lmglasfiber.com <mailto:sdh at lmglasfiber.com>  

 

 

 

 

--------------------------------------------------------------

This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose or
store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090317/94a17e60/attachment.html 


More information about the Qt-interest-old mailing list