None is convertible to QString, the result is a QString where QString.isNull is true.
This commit is contained in:
parent
826678cb91
commit
a5b2237ee0
3 changed files with 7 additions and 6 deletions
|
|
@ -105,6 +105,10 @@ class QStringConstructor(unittest.TestCase):
|
|||
|
||||
self.assertEqual(obj1, obj2)
|
||||
|
||||
def testNullQString(self):
|
||||
s = QString(None)
|
||||
self.assertTrue(s.isNull())
|
||||
|
||||
def testQStringFromPy(self):
|
||||
#QString(const char*)
|
||||
sample = 'a new string'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue