Results 1 to 2 of 2

Thread: List of draggable icons

  1. #1
    Join Date
    Jun 2019
    Location
    France, Pau
    Posts
    53
    Thanks
    27
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default List of draggable icons

    Hi everybody,

    With which components can I build something similar to the Qt Creators's resource selector (a draggable list of icons presented like files icons in file explorer) ?

    test.png

    Thanks.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,489
    Thanks
    252
    Thanked 716 Times in 706 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: List of draggable icons

    You could probably use the FlowLayout class (from the Qt Flow Layout example) to do the layout. The Draggable Icons example and the Fridge Magnets example are good places to start for implementing the drag and drop features. In your case, you probably won't be dragging something out of one widget and into another, but you'll create a duplicate and drag that instead. The Drop Site example will probably help there.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. The following user says thank you to d_stranz for this useful post:

    embeddedmz (5th May 2020)

Similar Threads

  1. Replies: 2
    Last Post: 8th April 2013, 06:40
  2. Replies: 3
    Last Post: 15th October 2009, 11:41
  3. Replies: 2
    Last Post: 12th October 2009, 22:42
  4. Draggable QActions in Qt
    By vajindarladdad in forum Newbie
    Replies: 6
    Last Post: 14th August 2009, 11:15
  5. Draggable Button
    By blueescort in forum Qt Programming
    Replies: 4
    Last Post: 6th November 2008, 07:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.