#include int main( int argc, char ** argv ) { QApplication app( argc, argv ); QListWidget list; list.setDragEnabled( true ); list.setAcceptDrops( true ); list.setDefaultDropAction( Qt::MoveAction ); list.addItem( new QListWidgetItem( "item" ) ); list.show( ); app.exec( ); }