Am Dienstag, 14. Mai 2019, 06:50:36 CEST schrieb Jürgen Spitzmüller:
> Am Montag, den 13.05.2019, 20:08 +0200 schrieb Jürgen Spitzmüller:
> > I can reproduce the assert with Qt 4.8.7 as well. Interestingly, the
> > bad role here is 31. There is no such role in the enum, but 31 is
> > UserRole (32 in Qt4) minus one, whereas the bad role in Qt5 for you
> > is
> > also UserRole minus one (UserRole is 256 in Qt5).
> 
> Further debugging revealed that the critical role is added when
> item->setEditable(false) is set (GuiDocument.cpp:4772). I have
> inspected the qt4 code, but it didn't occur to me where this happens.
> 
> The only idea to solve this, besides leaving the items in editable mode
> (which is not nice) would be the attached workaround.
> 
> Kornel, does this work for you as well with Qt 5.5?

Works here with qt5.5, and with qt4.8.7 too. Thanks.

> Jürgen

        Kornel

Reply via email to