Drag n Drop Button and Drop-down menu PyQt/Qt designer

  • I would like to know the "best practice" to change the behavior of some buttons to do the following:

    I want with a simple click to appear a menu. Or when you drag the same button you could drop it in another and this will "draw" a line connecting them.

    I was using the Qt designer and I realize that the buttons properties only the "acceptDrops" property is listed, but I can't make it work. Signals/Slots doesn't list something about dragging or dropping.

    So I think that the only way to do it is creating a "Custom Widget" or "reimplementing" a button by code. Maybe the same thing with Signals/Slots

    What is the best approach to do so if I don't want to modify the pyuic generated file? Any help will be appreciated.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.