[PyQt] Basic QQmlComponent question

Phil Thompson phil at riverbankcomputing.com
Tue Apr 18 08:53:09 BST 2017


On 18 Apr 2017, at 5:35 am, Jim Baack <jbaack at accelerantsys.com> wrote:
> 
> I am new to PyQt - enjoying it so far but have a lot to learn.
> 
> I was expecting the code below to print the type as "QGridLayout" but it is instead "QObject". Am I doing something wrong here or is my expectation incorrect? I appreciate the help.

A QML GridLayout is completely unrelated (except they perform a similar function) to a widget based QGridLayout.

QML UI's and widget UI's are completely separate UI implementations - they are not different interfaces to the same UI implementation.

Phil


More information about the PyQt mailing list