5.11: error: invalid use of incomplete type ‘class QAbstractItemModel’

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

5.11: error: invalid use of incomplete type ‘class QAbstractItemModel’

Florian Bruhin
Hey,

Not sure if PyQt 5.11 is already supposed to work, but I gave the latest
snapshot a try (sip-4.19.9.dev1806101717, PyQt5_gpl-5.11.dev1806101728,
Qt 5.11.1 branch, GCC 8.1.1 on Archlinux).

I got a couple of errors while compiling
QtTest/qabstractitemmodeltester.h:
http://paste.the-compiler.org/view/98555747

Adding a "#include <QAbstractItemModel>" at the top of
QtTest/sipQtTestQAbstractItemModelTester.cpp seems to help, though
that's probably not a proper fix.

If it's not supposed to work properly yet, feel free to ignore this, but
I thought I'd report it sooner rather than later.

Florian

--
https://www.qutebrowser.org | [hidden email] (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 5.11: error: invalid use of incomplete type ‘class QAbstractItemModel’

Phil Thompson-5
On 11 Jun 2018, at 8:08 am, Florian Bruhin <[hidden email]> wrote:

>
> Hey,
>
> Not sure if PyQt 5.11 is already supposed to work, but I gave the latest
> snapshot a try (sip-4.19.9.dev1806101717, PyQt5_gpl-5.11.dev1806101728,
> Qt 5.11.1 branch, GCC 8.1.1 on Archlinux).
>
> I got a couple of errors while compiling
> QtTest/qabstractitemmodeltester.h:
> http://paste.the-compiler.org/view/98555747
>
> Adding a "#include <QAbstractItemModel>" at the top of
> QtTest/sipQtTestQAbstractItemModelTester.cpp seems to help, though
> that's probably not a proper fix.

That is the right fix - I'll automate it in tonight's snapshot. I'd forgotten I had already hacked my Qt installation.

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt