<div dir="ltr">Solution found: Returning a freshly instantiated QObject() does the trick. QML interprets this as a null. ie:<div><br></div><div><div style="font-size:9.6px"><font face="monospace, monospace" color="#351c75">@pyqtProperty(QVariant, notify = publicPropertyChanged)#'QDateT<wbr>ime')</font></div><div style="font-size:9.6px"><font face="monospace, monospace" color="#351c75">def my_date(self):</font></div><div style="font-size:9.6px"><font face="monospace, monospace" color="#351c75"> if self._my_date is None:<br></font></div><div style="font-size:9.6px"><font face="monospace, monospace" color="#351c75"> return QObject() # QML interprets this as null</font></div><div style="font-size:9.6px"><font face="monospace, monospace" color="#351c75"> return QDateTime(self._my_date) # no PyQt autoconvert for datetime->QVariant</font></div></div><div class="gmail_extra"><br>
</div></div>