[Qt-interest] not able move across elements in QTreeWidget

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Fri Jan 8 14:06:41 CET 2010


Andre  I am loading only 2 items they're text, one item is a child of
another. trying to move my cursor between them  selecting them but when
after some time this causes to get stuck and i cannot move anymore.I need to
close the application and restart again. same thing is happening again.

See the code snippet below.
I can see the items are loaded in the treewidget but the move moments are
not free.

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QList <QTreeWidgetItem  *> item;
item.append(new QTreeWidgetItem(this));
item[0]->setText(0,"part1");
QTreeWidgetItem *partname = new QTreeWidgetItem(item[0]);
partname->setText(0,"child");
item[0]->addChild(partname);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



On Fri, Jan 8, 2010 at 5:50 PM, Andre Somers <andre at familiesomers.nl> wrote:

> Sujan Dasmahapatra wrote:
> >
> > Dear Friends
> > I have a QTreeWidget in my application.When I am loading some items
> > (QTreeWidgetItem) I can see the items are there. But after some time
> > my mouse is getting stuck and I am not able to move to select a
> > different item.
> > Any idea from anyone what could be the reason.
> > I am guessing this could be the performance problem  but no clue I am
> > getting about how to resolve it.
> >
> > Any help or comments would be highly appreciated.
> >
> > Thanks
> > sujan
> >
> If "some" is actually some, as in, a few dozen, then this should not
> cause any performance issues. If by "some", you mean many thousands,
> than this may be an issue.
> It is impossible to tell, without you reducing the issue to a minimal
> example that you post here.
>
> André
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Software programmer
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100108/acd31729/attachment.html 


More information about the Qt-interest-old mailing list