Problem with QAbstractItemModel.dataChanged
Björn Künsting
bjoern at corecode-dev.com
Tue Mar 7 19:29:27 GMT 2023
Hi Maurizio,
On Mon, 2023-03-06 at 18:50 +0100, Maurizio Berti wrote:
>
> It might be a bug (it seems strange that it affects Linux only,
> though), are you sure you're using the same versions?
>
Yes, running the same versions.
> That said, remember that:
>
> - the types of slot/signal/property decorators can also be used
> without the string notation, if the type is available;
> - slots may have *less* positional arguments than the signals they
> are connected to, so, unless you specifically need the "roles"
> argument, you can completely remove it from the slot:
>
> @pyqtSlot(QModelIndex, QModelIndex)
>
> - slot decorators are not mandatory, and are usually required only
> for very specific cases;
>
Indeed, had not thought of that. Just tried it without the decorator
and it works on Linux. Thanks!
--
Bjoern
More information about the PyQt
mailing list