Skip to content

QtCore.QObject is disappeared #260

@ChenxiLiu-code

Description

@ChenxiLiu-code

OS:Windows11 24H2
Python Version:3.13
Qt Version: 6.8
PythonQt Version: 3.6
Compiler: msvc

This is the infomation printed in PyScriptingConsole

py> from PythonQt import *
py> QtCore.QObject
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'PythonQt.QtCore' has no attribute 'QObject'

py> 

Image

And I check the source code in com_trolltech_qt_core_init.cpp
The register code for QObject exist actually

PythonQt::priv()->registerClass(&QObject::staticMetaObject, "QtCore", PythonQtCreateObject<PythonQtWrapper_QObject>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QObject>, module, 0);

But QObject is still disappeared in python.

Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions