Results 1 to 2 of 2

Thread: Help with drag and drop several items, labels

  1. #1
    Join Date
    Feb 2014
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Help with drag and drop several items, labels

    Hello everybody, I'm programming a Solitaire in QT 5.2.1, I'm new using QT and I´ve got a problem, I can´t use, I mean I don´t know the drag and drop functions of QT, I just can Drag and Drop an element (a card), but I want to drag and drop several cards, as real solitaire. I´m not using QGraphicsView/QGraphicsScene, I draw the cards in QLabels.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Help with drag and drop several items, labels

    There are no built-in facilities for dragging widgets in Qt. You have to implement everything yourself based on the generic drag and drop mechanism. It would be much easier for you if you used graphics view.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. List Widget drag drop items
    By alexoparin in forum Qt Programming
    Replies: 1
    Last Post: 10th January 2014, 15:58
  2. Drag and Drop items in QListWidget
    By tommynator128 in forum Qt Programming
    Replies: 4
    Last Post: 10th March 2011, 11:09
  3. Drag and Drop in QGraphicsScene misses items
    By enno in forum Qt Programming
    Replies: 2
    Last Post: 30th August 2009, 15:17
  4. Catch drag and drop items
    By nina1983 in forum Qt Programming
    Replies: 1
    Last Post: 23rd July 2008, 17:24
  5. Drag & drop items on the same QTreeView
    By wind in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2006, 14:29

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.