[Interest] drag and drop disappear the item for windows, in Linux it fine

Sujan Dasmahapatra sdh at lmwindpower.com
Fri Jan 20 10:30:05 CET 2012


Dear Friends

This is a operating system level problem. Its happening only for windows
OS. Because in my dropEvent() function I have checked that all the items
have their text present. After drop event some system level aip's are
called so their, the draggin item position item text is lost. 

Any suggestions would be highly appreciated. Thanks Sujan

 

 

Kind regards,

 

 

Sujan Dasmahapatra
Project Leader, Aero Group
CE - Aero Group

Tel    +91 80 66470248
Mob  

sdh at lmwindpower.com <mailto:%25EMAIL%25> 

 

LM Wind Power Blades

lmwindpower.com

 

Together we capture the wind to power a cleaner world

________________________________

 

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.

 

From: interest-bounces+sdh=lmwindpower.com at qt-project.org
[mailto:interest-bounces+sdh=lmwindpower.com at qt-project.org] On Behalf
Of Sujan Dasmahapatra
Sent: Thursday, January 19, 2012 5:50 PM
To: interest at qt-project.org
Subject: Re: [Interest] drag and drop disappear the item for windows,in
Linux it fine

 

After drag and drop in the hierarchy the last item's text is invisible.
Only in windows this is happening in linux no problem. Has anyone come
across this problem Please give some advice. Thanks Sujan

 

 

Kind regards,

 

 

Sujan Dasmahapatra
Project Leader, Aero Group
CE - Aero Group

Tel    +91 80 66470248
Mob  

sdh at lmwindpower.com <mailto:%25EMAIL%25> 

 

LM Wind Power Blades

lmwindpower.com

 

Together we capture the wind to power a cleaner world

________________________________

 

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.

 

From: interest-bounces+sdh=lmwindpower.com at qt-project.org
[mailto:interest-bounces+sdh=lmwindpower.com at qt-project.org] On Behalf
Of Sujan Dasmahapatra
Sent: Thursday, January 19, 2012 12:13 PM
To: interest at qt-project.org
Subject: [Interest] drag and drop disappear the item for windows,in
Linux it fine

 

Dear Friends

In my application I have implemented drag and drop on the treewidget
items. In linux its working fine but in windows I see when dragging and
dropping an item in the treewidget list, then from where the item is
dragged there's items name is disappearing but its child items are
present. And the item become inactive. Its working fine in Linux but in
windows I am facing this problem. Please give me some suggestions. Check
my drag and drop event.

 

[code]

void TreeWidget::dragMoveEvent(QDragMoveEvent * event)

{

        event->acceptProposedAction();

}

void TreeWidget::dragEnterEvent(QDragEnterEvent * event )

{

        Preprocessor = true;

        draggingItem = currentItem();

        event->acceptProposedAction();

        oldindex = indexOfTopLevelItem(currentItem());

}

void TreeWidget::dropEvent(QDropEvent * event )

{

        dropingOn = this->itemAt(event->pos());

        if(!dropingOn)

        return;

        if(dropingOn->parent())

        return;

        int dropingIndex = this->indexOfTopLevelItem(dropingOn);

        this->takeTopLevelItem(this->indexOfTopLevelItem(draggingItem));

        index = this->indexOfTopLevelItem(dropingOn);

        if(index < dropingIndex) index++;

        this->insertTopLevelItem(index, draggingItem);

}

[/code]

 

 

Kind regards,

 

 

Sujan Dasmahapatra
Project Leader, Aero Group
CE - Aero Group

Tel    +91 80 66470248
Mob  

sdh at lmwindpower.com <mailto:%25EMAIL%25> 

 

LM Wind Power Blades

lmwindpower.com

 

Together we capture the wind to power a cleaner world

________________________________

 

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/interest/attachments/20120120/0f2a7347/attachment.html>


More information about the Interest mailing list