Error: incompatible type of argument(s) in call to call(); candidates were call(QString,QJsonValue)
See original GitHub issueSpecification
- Platform:raspberry pi arm64 ubuntu
- Version: pywebview-2.2.1 python3
Description
first,I according to the doc, apt isntall qt5-default apt install python3-pyqt5 python3-pyqt5.qtwebkit libqt5webkit5-dev
but i cant run test,I found the pyqt
s version is 5.5.1,
and debug found can`t import QtWebEngineWidgets,so I edit version check in qt.py of source,I try import from PyQt5 import QtWebKitWidgets and it works.
then,I try examples for https://pywebview.flowrl.com/examples/js_api.html click “Hello Python” button nothing happen,so i try catch the function pywebview.api.init().then(showResponse)
I got: Error: incompatible type of argument(s) in call to call(); candidates were call(QString,QJsonValue)
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
error: incompatible type for argument
Since you need to pass the address of the head and tail pointers to the function. Similar fix needs to be made to...
Read more >Solved: Clear Collect gives an incompatible type error upo...
Solved: I am trying to use clear collect function in my app with 2 lists but it gives me an Incompatible type error...
Read more >Generic inference regression from #5699 · Issue #5738
Incompatible types in assignment (expression has type "Tuple[_T_co, . ... List call infers for its type argument T' :> str from first pass ......
Read more >How to Handle the Incompatible Types Error in Java
Introduction to Data Types & Type Conversion. Variables are memory containers used to store information. In Java, every variable has a data ...
Read more >Incompatible type with mxCreateNumericArray
Learn more about mexfunction, incompatible types, mxcreatenumericarray. ... error: argument of type "const int *" is incompatible with parameter of type ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I refactored the code, so that it determines at the import stage whether WebEngine is available and sets a flag accordingly or not and the rest of conditionals are based on that flag. Version check is completely gone. In addition to installations instructions, WebEngine Travis builds need to be figured out as well. Travis provides Ubuntu Xenial at best, which comes with QT5.5.
@r0x0r It is works on ubuntu16 used qt-5.5.1,at the same time,I did test on ubuntu18 used qt-5.10,it is not works,so I viewed the qt.py source code,I think it is not good what import QtWebkit or QtWebEngineWidgets by qt`s version, QtWebEngineWidgets and QtWebkit is Two different components,so use QtWebEngineWidgets need apt install python3-pyqt5.qtwebengine python3-pyqt5.qtwebchannel and use QtWebkit apt install python3-pyqt5.qtwebkit.They have nothing to do with versions.Just QtWebEngineWidgets provide since qt5.6