How do you drag a button freely within another widget?
-
Here's my app, it's called Watermelon.
For something similar, see bubble.is for web apps. But this is starting out for PyQt5 apps, and also is closer to code (it's as if bubble let's you look at its code and edit it!)
Anyway, any comments / suggestions welcome. But for one, how do I drag a QPushbutton across another widget like it's in a QGraphicsScene?
-
@enjoysmath Take a look at https://doc.qt.io/qt-5/dnd.html
-
Hi
You have to program it.
https://wiki.qt.io/Widget-moveable-and-resizeable -
Hi! I'm going to code it yes. I was just looking for a good article and you've shown me. I want to make it with control points / handles. It's going to be awesome when it's done, but really tough to code. Before anyone can use Watermelon it has to support such & such basic things.
-