| Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
qt-win-opensource-src-4.3.0-snapshot-20070327 InternalMove work only for QTreeWidget, for QTreeView his just copy item as DragDrop :( To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
On Saturday 14 April 2007 08:55, SABROG wrote: > qt-win-opensource-src-4.3.0-snapshot-20070327 > > InternalMove work only for QTreeWidget, for QTreeView his just copy item > as DragDrop :( Could you supply a small code snippit showing the bug? When I put a QStandardItemModel in a QTreeView I saw the expected behavior. -Benjamin Meyer
Attachment:
Attachment:
pgpEvUaQ0sGUh.pgp
Attachment:
Attachment:
pgpawBlQ6xR6T.pgp
Description: PGP signature
Message 3 in thread
Maybe this problem with manual MetaType for items, Qt cant move data
from one type to new type and just copy visual item, but don't delete
old.
Benjamin Meyer wrote:
> On Saturday 14 April 2007 08:55, SABROG wrote:
>> qt-win-opensource-src-4.3.0-snapshot-20070327
>>
>> InternalMove work only for QTreeWidget, for QTreeView his just copy item
>> as DragDrop :(
>
> Could you supply a small code snippit showing the bug? When I put a
> QStandardItemModel in a QTreeView I saw the expected behavior.
>
> -Benjamin Meyer
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 4 in thread
By MetaType do you mean "QAbstractItemModel::flags()"? or custom roles set
with "QAbstractItemModel::setData()". While the view can't move flags most
models either generate them (such as QDirModel) or store them in data (such
as QStandardItemModel). When using setData() with custom roles on a custom
model make sure to reimplement itemData() to include the new roles.
Lastly you can double check that you have selection set to row. In a tree if
you move only the first column it wont remove the row.
-Benjamin Meyer
On Wednesday 18 April 2007 20:59, SABROG wrote:
> Maybe this problem with manual MetaType for items, Qt cant move data
> from one type to new type and just copy visual item, but don't delete
> old.
>
> Benjamin Meyer wrote:
> > On Saturday 14 April 2007 08:55, SABROG wrote:
> >> qt-win-opensource-src-4.3.0-snapshot-20070327
> >>
> >> InternalMove work only for QTreeWidget, for QTreeView his just copy item
> >> as DragDrop :(
> >
> > Could you supply a small code snippit showing the bug? When I put a
> > QStandardItemModel in a QTreeView I saw the expected behavior.
> >
> > -Benjamin Meyer
>
> To unsubscribe - send "unsubscribe" in the subject to
> qt4-preview-feedback-request@xxxxxxxxxxxxx
Description: PGP signature