Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Spanish
  4. Drag and Drop
Forum Updated to NodeBB v4.3 + New Features

Drag and Drop

Scheduled Pinned Locked Moved Spanish
3 Posts 2 Posters 3.2k Views 1 Watching
  • 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.
  • I Offline
    I Offline
    Iktwo
    wrote on last edited by
    #1

    He estado leyendo sobre Drag and Drop y ando un poco perdido para implementarlo, tengo un QListWidget y quiero pasar el texto de cada item que arrastre a un determinado QLabel, he visto ejemplos pero no me queda claro, mis preguntas, debo hacer una clase que herede de un QLabel y de un QListWidget para poder arrastrar y soltar entre ellos? cuales son los eventos que debo implementar? Espero puedan darme un ejemplo que aplique como para lo que quiero hacer, no les pido que me lo resuelvan sino que me guíen o me den algo que leer, muchas gracias!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sigrid
      wrote on last edited by
      #2

      My Spanish is a bit rusty, but if I understand you correctly, then you want to do drag and drop between a QLabel and a QListWidget? If so, perhaps the following "FAQ":http://developer.qt.nokia.com/faq/answer/how_can_i_drag_items_between_a_qtoolbar_and_a_qlistwidget can be of help. It shows how to drag and drop between a QToolBar and a QListWidget, and should be easy to tweak to be between a QListWidget and a QLabel instead.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Iktwo
        wrote on last edited by
        #3

        [quote author="sigrid" date="1306235236"]My Spanish is a bit rusty, but if I understand you correctly, then you want to do drag and drop between a QLabel and a QListWidget? If so, perhaps the following "FAQ":http://developer.qt.nokia.com/faq/answer/how_can_i_drag_items_between_a_qtoolbar_and_a_qlistwidget can be of help. It shows how to drag and drop between a QToolBar and a QListWidget, and should be easy to tweak to be between a QListWidget and a QLabel instead. [/quote]

        My english is a bit rusty too and I can't find all the words to express how grateful I am, it works exactly like I expected, I would buy you a cake if I could. :)

        1 Reply Last reply
        0

        • Login

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