Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>' #86

Open
mottosso opened this issue Aug 1, 2019 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed qt5

Comments

@mottosso
Copy link
Owner

mottosso commented Aug 1, 2019

This is our lovely command-completion for profiles at work.

self._proxy.setSourceModel(model)

Uncommenting this line resolves the issue, but I cannot for the life of me figure out why? :( Only affects PySide2 and PyQt5.

@mottosso mottosso added qt5 bug Something isn't working help wanted Extra attention is needed labels Aug 1, 2019
@davidlatwe
Copy link
Collaborator

Just found out that it seems to be threading related ?

Setting environment variable ALLZPARK_NOTHREADING=1 and launching Allzpark, you will get

TypeError: _on_success() takes 0 positional arguments but 1 was given

And solving it by changing this line

def _on_success():

into

        def _on_success(result):

Then launch Allzpark again, the warning was gone.

@mottosso
Copy link
Owner Author

It's likely related to threading yeah, but we need threading I think. The positional argument I think is a difference between Qt 4 and Qt 5. Might be able to solve it (for both) with result=None.

@davidlatwe
Copy link
Collaborator

After #110, that warning is gone, since the command-completion widget is not being used anymore.
Not a fix, just leaving a note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed qt5
Projects
None yet
Development

No branches or pull requests

2 participants