qt中的拖拽及其使用技巧

一、QDrag 首先是创建QDrag,可以在mousePressEvent或者mouseMoveEvent中创建。 [cpp]  view plain  copy void DragDropWidget::mousePressEvent(QMouseEvent *event)   {       if (event->button() == Qt::LeftButton)       {     
相关文章
相关标签/搜索