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. is it possible to drag and drop without overriding the dropenterevent
Forum Updated to NodeBB v4.3 + New Features

is it possible to drag and drop without overriding the dropenterevent

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 462 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.
  • P Offline
    P Offline
    pineapple
    wrote on last edited by
    #1

    since I use the QUiLoader().load to load the ui file. I CANT override the instance of widget.drag and drop function cant work. is it possible to work?or other way to drag and drop a treeview item to textedit to show the file content rather than the url of file path.

    VRoninV 1 Reply Last reply
    0
    • P pineapple

      since I use the QUiLoader().load to load the ui file. I CANT override the instance of widget.drag and drop function cant work. is it possible to work?or other way to drag and drop a treeview item to textedit to show the file content rather than the url of file path.

      VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      @pineapple said in is it possible to drag and drop without overriding the dropenterevent:

      I CANT override the instance of widget

      Can't you just use the promote feature to make the ui point to the overloaded class?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      P 1 Reply Last reply
      0
      • VRoninV VRonin

        @pineapple said in is it possible to drag and drop without overriding the dropenterevent:

        I CANT override the instance of widget

        Can't you just use the promote feature to make the ui point to the overloaded class?

        P Offline
        P Offline
        pineapple
        wrote on last edited by
        #3

        @VRonin I use python to program. can qt creator also edit by python? I Try before but I dont get acknowledge to C++ that I failed

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          a .ui file is just plan xml, python or C++ are irrelevant

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          P 1 Reply Last reply
          0
          • VRoninV VRonin

            a .ui file is just plan xml, python or C++ are irrelevant

            P Offline
            P Offline
            pineapple
            wrote on last edited by
            #5

            @VRoninTHANKS! promote feature need to provide a head file which is edit by c++ in qt creator? I dont know how to make it
            point to the overloaded class?

            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