Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, March 2007
Pixmap showing items being dragged in QTreeView is not always shown at correct position.


Message 1 in thread

When drag operation is started from QTreeView and the item being
dragged is lower in the viewport (i.e. you have scrolled the view
vertically to view the item), then the pixmap showing the items being
dragged is not drawn at correct place.
Sample code is attached.

Thanks

-- 
 [ signature omitted ] 
#include <QtGui>
int main(int argc, char *argv[]){
    QApplication app(argc, argv);
    QStandardItemModel model(100, 10);
    QTreeView tree;
    tree.setModel(&model);
    tree.setDragEnabled(true);
    tree.setAcceptDrops(true);
    tree.setDropIndicatorShown(true);
    tree.show();
    return app.exec();
}

Message 2 in thread

Please note that I used Qt/X11 Version 4.3.0-snapshot-20070327 on Linux.

--
 [ signature omitted ]