[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    QListWidget findChild Return Value
From:       John Thornton <dev () gnipsel ! com>
Date:       2023-12-11 17:16:52
Message-ID: aa25db15-b322-0ed1-de96-0d568de5098f () gnipsel ! com
[Download RAW message or body]

When trying to find out if a QListWidget is loaded with

if self.findChild(QListWidget, "listWidget"):

it returns False even though the widget is present.

if I test for not None I get True

if self.findChild(QListWidget, "listWidget") is not None:

I can't find any other widget that fails to be found by name.

I asked the question on stackoverflow

https://stackoverflow.com/questions/77640161/pyqt6-findchild-fails-with-qlistwidget

JT

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic