QStandardItemModelwhat's the normal recipe?
Hi all. I'm using PySide6 == '6.0.2' and getting an import error trying to import QtWebKit:
In : from PySide6 import QtWebKit --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-5-297f908da156> in <module> ----> 1 from PySide6 import QtWebKit ImportError: cannot import name 'QtWebKit' from 'PySide6' (/Users/sivan/VirtualEnvs/venv3/lib/python3.9/site-packages/PySide6/__init__.py)
It's missing from the module dir:
(venv3) sivan@darwin:~/VirtualEnvs/venv3/lib/python3.9/site-packages/PySide6$ ls -la | grep -i qtwebkit (venv3) sivan@darwin:~/VirtualEnvs/venv3/lib/python3.9/site-packages/PySide6$ `
PySide6 installed via pip into a virtual env, anything out of the default need be done to get QtWebKit there as well ?
Hey there! I'm working with a qt and qt for python built from source (5.15.3) and I hit the following assert in Debug on Windows when importing any PySide2 module:
Assertion failed: _PyGCHead_REFS(gc) != 0, file c:\a\18\s\modules\gcmodule.c, line 277
Any idea what could be going wrong?
QAbstractItemViewbe the way to go?
Hi, we are trying to port QGIS (a rather large Qt base application) to PySide2
We are running into an issue with "allocating an object of abstract type ..."
qt-for-python/qgis/core/qgsmaplayer_wrapper.cpp:1289:35: error: allocating an object of abstract class type '::QgsMapLayerWrapper' cptr = new (addr) ::QgsMapLayerWrapper(); ^ ../src/core/qgsmaplayer.h:942:18: note: unimplemented pure virtual method 'readSymbology' in 'QgsMapLayerWrapper' virtual bool readSymbology( const QDomNode &node, QString &errorMessage, ^
Most messages of this type could be eliminated by adding classes required for the function signature to the type system. In this case here, this doesn't seem to help.
Here's the method signature
And here the corresponding type system xml
Interestingly there's also another method
bool render(); which shows the same, so I'm tempted to believe it's related to the boolean return type. Does this sound plausible, are there other suspicions ... And ideally, how can we solve that.
Thanks in advance for any hint
Gentle ping @cmaureir