Results 1 to 2 of 2

Thread: List of draggable icons

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2019
    Location
    France, Pau
    Posts
    60
    Thanks
    32
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    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
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    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, 07:40
  2. Replies: 3
    Last Post: 15th October 2009, 12:41
  3. Replies: 2
    Last Post: 12th October 2009, 23:42
  4. Draggable QActions in Qt
    By vajindarladdad in forum Newbie
    Replies: 6
    Last Post: 14th August 2009, 12:15
  5. Draggable Button
    By blueescort in forum Qt Programming
    Replies: 4
    Last Post: 6th November 2008, 08: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.