Hello!
Sorry for being a little offtopic. I am a Python junior developer. I am using PyQt5.QtWidgets Python module. My problem is with laying out widgets on parent object, so I guess they are not Python-specific.
Namely, I need a widget to be positioned using GridLayout, and then I need to delete it a little later.
If I create a widget specifying a parent widget among constructor arguments, ia gets automatically positioned on a parent widget, which is what I don't want. If I do not specify parent explicitly, but instead create a QGridLaoyut object in a parent widget and add my child widget using AddWidget method of a QGridLaoyut object, widget is positioned OK, but I cannot reach it from a parent (because this is not its parent, as mentioned earlier). So the questions are:
1. How can I maintain some control ovet my child widgets without getting them auto-positioned by the parent?
2. How exactly are child widgets positioned on a parent (if parent is specified)? I checked parent layout() method, and it does not return any valid laoyut object.
Thanks in advance!