Note that there are some explanatory texts on larger screens.

plurals
  1. POQListWidget Drag after scrolling down the list
    primarykey
    data
    text
    <p>I am creating A Sortable List in Qt. The Code works perfectly well for Downward Scroll but when i having some issues getting the draggable item after i scroll the list down. I have added some test case screenshot for better understanding</p> <p><a href="http://imageshack.us/a/img13/2791/56842367.png" rel="nofollow noreferrer">Screen1 http://imageshack.us/a/img13/2791/56842367.png</a> <a href="http://imageshack.us/a/img819/8662/87542336.png" rel="nofollow noreferrer">Screen2 http://imageshack.us/a/img819/8662/87542336.png</a> <a href="http://imageshack.us/a/img24/761/97993758.png" rel="nofollow noreferrer">Screen3 http://imageshack.us/a/img24/761/97993758.png</a> <a href="http://imageshack.us/a/img825/1172/93877106.png" rel="nofollow noreferrer">Screen4 http://imageshack.us/a/img825/1172/93877106.png</a></p> <p>Well this is the test case code </p> <pre><code> #include &lt;QtGui&gt; int main(int argc, char **argv) { QApplication app(argc, argv); QListWidget *listWidget = new QListWidget; for(int i=0;i&lt;100;++i){ listWidget-&gt;addItem("SongOne"); listWidget-&gt;addItem("SongTwo"); listWidget-&gt;addItem("SongThree"); listWidget-&gt;addItem("SongFour"); listWidget-&gt;addItem("SongFive"); } listWidget-&gt;setDragDropMode(QAbstractItemView::InternalMove); listWidget-&gt;setDragEnabled(true); listWidget-&gt;setAcceptDrops(true); listWidget-&gt;setDropIndicatorShown(true); listWidget-&gt;viewport()-&gt;setAcceptDrops(true); listWidget-&gt;setSelectionMode(QAbstractItemView::SingleSelection); listWidget-&gt;show(); app.exec(); delete listWidget; return 0; } </code></pre> <p>Thankz for taking the time in reading my post. Do help me if you have any hint on what i am missing out.I think i am missing setting some property. In the main Program(not the test code), i tried rewriting the <code>dragMoveEvent</code> and few more method, but no use.</p> <p>the problem here is not the drag and drop but the QRect that is created while doing Drag and Drop. In Figure Two the Qrect is Created but not in Figure Four</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload