Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6055575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:16:47+00:00 2026-05-23T08:16:47+00:00

I wanna implement some king of Image List (like this one ) with drag-n-drop

  • 0

I wanna implement some king of Image List (like this one) with drag-n-drop option (when element is dragged out of list and dropped somewhere, it is not removed from the list and when item is dropped into the list, it is added to the bottom of the list). This list should not have its images ‘iconified’ (like QListWidget), but should have text under (or aside) the respective items (like QListView).

So, the question is: how it could be implemented using PyQt (or just usual Qt – it’s not a problem to convert a bunch of code)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:16:47+00:00Added an answer on May 23, 2026 at 8:16 am

    Use the constructor of QListWidgetItem that takes an icon to insert items with icon into your list. i.e

    QListWidget list = new QListWidget  ();
    QListWidgetItem item =new QListWidgetItem(QIcon("C:\\My.PNG"),"Winter",list);
    

    Then use these methos with your lists

    list1->setDragEnabled(true);
    list2->setAcceptDrops(true);
    

    Then, implement these methods:

    void dragEnterEvent(QDragEnterEvent *event);
    void dragMoveEvent(QDragMoveEvent *event);
    void dropEvent(QDropEvent *event);
    void startDrag(Qt::DropActions supportedActions);
    

    Here you can find an example too

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanna implement a javascript like method in java , is this possible ?
I wanna implement comments view like this: Is there any open source project doing
i have a div that it have image content .i wanna implement animation when
I have readed something about it i wanna to do some implementation using this.
I use codenameone to develop my mobile application. In this application I implement some
I wanna implement something like in facebook: after left click on photo, it is
How to implement like JAVA ‘Protect’ function in Object-C?I wanna access father class method
i wanna implement a bookcase like as ibook's bookcase.who can tell me how to
Any help would be appreciated on this one. I'm trying to implement a dynamic
I wanna implement this using jquery instead of inline but Its not working, inline

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.