* Fixed issue #1029 The problem happened because in the described case the tl::Variant used as a intermediate container holds the Python QBrush object and when it gets deleted, the QBrush object is deleted too. * Added tests