Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Acceptdrop not working

Acceptdrop not working

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.0k Views
  • 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.
  • T Offline
    T Offline
    tanmay2227
    wrote on last edited by
    #1

    i have a tab widget plugin . i have added some prerequisited tab at the start in the plugin. using the simple addtab method but the tab i have added does not accept drop widgets . the widgets i try to place in the tab are not its children but just placed over it . while if i insert a new poge in the designer that page works just fine. can you tell me please why is that

    Tanmay Priyadarshi

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi, First of all, what does your code do?
      There are options that needs to be set in designer or in code before the drag/drop action will be accepted. Check out the ui_xx.h file and check out what designer makes for you.
      Also, read this:
      "Drag and drop docs":http://qt-project.org/doc/qt-4.8/dnd.html
      There it is explained what you need to do before drag/drop is handled.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tanmay2227
        wrote on last edited by
        #3

        i have implemented the
        @ void dragEnterEvent(QDragEnterEvent *event);

        void dropEvent(QDropEvent *event);@
        

        and have them accept all actions but still it doesnt work

        Tanmay Priyadarshi

        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