Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get item after drag item from QListWidget Thumbnails
Forum Updated to NodeBB v4.3 + New Features

How to get item after drag item from QListWidget Thumbnails

Scheduled Pinned Locked Moved Solved General and Desktop
23 Posts 2 Posters 3.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A amarism

    @VRonin said in How to get item after drag item from QListWidget Thumbnails:

    auto isNotDragEnabled = [this](const QModelIndex &index) {
    return !isIndexDragEnabled(index);
    };

    showing error in this line " !isIndexDragEnabled(index) "

    VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #21

    Yep, sorry, corrected now

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    A 1 Reply Last reply
    0
    • VRoninV VRonin

      Yep, sorry, corrected now

      A Offline
      A Offline
      amarism
      wrote on last edited by amarism
      #22

      @VRonin Now i m getting this one error "ErrorC3867 'QModelIndex::row': non-standard syntax; use '&' to create a pointer to member" In this line " draggetItems << itemAt(index.row)); "

      1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #23

        These are just typos that are easy to fix... c'mon. I just forgot (). index.row should be index.row()

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        3

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved