I'm currently building a program in QT in which I have several custom widgets in a frame, and upon a button press more will enter the frame. I've implemented my own functionality to drag and move them around the frame, and that all works fine, but here's the problem: When I already have some of these widgets on the screen that have moved from their initial location and I go to add another widget to the layout, the entire layout resets the locations of every widget beneath it.
I've been using .move(x,y) to move them around, and .addWidget(my widget) as the way to add the widgets to the layout.
Is there any way to prevent this, or some sort of work around? Or if nothing else, any other way to add them to the frame in which they wont automatically move around when a new one is added?