From fd8b33616fe6a1c5ceaa0b227843d65f2d1eeae6 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Mon, 31 Jan 2011 15:46:23 -0200 Subject: Fix bug 656 - "cannot inherit from QCoreApplication" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Renato Araújo Luciano Wolf --- tests/QtCore/CMakeLists.txt | 1 + tests/QtCore/bug_656.py | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/QtCore/bug_656.py (limited to 'tests/QtCore') diff --git a/tests/QtCore/CMakeLists.txt b/tests/QtCore/CMakeLists.txt index c53002b2b..c6f9ffd43 100644 --- a/tests/QtCore/CMakeLists.txt +++ b/tests/QtCore/CMakeLists.txt @@ -5,6 +5,7 @@ PYSIDE_TEST(bug_428.py) PYSIDE_TEST(bug_462.py) PYSIDE_TEST(bug_505.py) PYSIDE_TEST(bug_515.py) +PYSIDE_TEST(bug_656.py) PYSIDE_TEST(blocking_signals_test.py) PYSIDE_TEST(child_event_test.py) PYSIDE_TEST(deepcopy_test.py) diff --git a/tests/QtCore/bug_656.py b/tests/QtCore/bug_656.py new file mode 100644 index 000000000..ba5617447 --- /dev/null +++ b/tests/QtCore/bug_656.py @@ -0,0 +1,9 @@ +from PySide.QtCore import * + +class CoreApp(QCoreApplication): + def __init__(self,*args): + super(CoreApp,self).__init__(*args) + # It shouldn't crash after the __init__ call + +import sys +app = CoreApp(sys.argv) -- cgit v1.2.3