ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

сообщение · 2022-08-30 08:28 UTC
В
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!

All messages on 30 August 2022 · Whole feed · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog