Using GraphicalEffects in PySide6 - qt

I am using PySide6 and am trying to use the GraphicalEffects module.
As per documentation here:
https://doc.qt.io/qt-6/qtgraphicaleffects5-index.html
I am doing:
import Qt5Compat.QtGraphicalEffects
The error I am getting:
"Qt5Compat.QtGraphicalEffects" is not installed
How do I install this module? I have PySide6.2.2.1 installed on my Linux machine.

Its a known issue when installing from pypi. It will be fixed in pyside 6.4.
You can also build from source and it will be added automatically if you installed it with Qt-online installer.

An alternative would be to copy the module from the root directory and include it in the development environment.
Here is a more detailed description: QT6.4 QML PYTHON module "Qt5Compat.GraphicalEffects" is not installed
Works with Pyside6 or PyQt6.

Related

"QtCanvas3D is not installed" erron on qnx target

I have complied "frameBuffer" canvas3D example using Qnx kit and trying to run that executable on my Qnx target but it is throwing below error:
./framebuffer &
[1] 1216519
QML debugging is enabled. Only use this in a safe environment.
QQnxScreen: QQNX_PHYSICAL_SCREEN_SIZE variable not set. Could not determine physical screen size. Defaulting to 150x90.
qrc:/main.qml:39:1: module "QtQuick.Controls" is not installed
qrc:/main.qml:40:1: module "QtQuick.Layouts" is not installed
qrc:/main.qml:38:1: module "QtCanvas3D" is not installed
qrc:/main.qml:39:1: module "QtQuick.Controls" is not installed
qrc:/main.qml:40:1: module "QtQuick.Layouts" is not installed
qrc:/main.qml:38:1: module "QtCanvas3D" is not installed
qrc:/main.qml:39:1: module "QtQuick.Controls" is not installed
qrc:/main.qml:40:1: module "QtQuick.Layouts" is not installed
qrc:/main.qml:38:1: module "QtCanvas3D" is not installed
Can anyone suggests how to get installed these missing module. I am using Qt Crea tor 3.5.1(enterprise) licensed version.
Try to set the path QML2_IMPORT_PATH= "qml path", which should be available in your QT installed folder.

Where can I download qmlscene for Ubuntu

MMMMMM#unbuntu:~/QT/test4Qml$ qmlscene main.qml
qmlscene: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmlscene': No such file or directory
My Qt Development Environment does not have qmlscene. I googled it, and I only found *.deb. How should I do it?
As far as I know, Qt is not installed by default in /usr/lib/x86_64-linux-gnu/qt4. That directory is the default path when linux detects a dependency which requires Qt.
Where did you installed Qt? How did you installed it? Did you set the PATH environment variable to where Qt binaries are installed?
Usually, you have to follow the next steps:
1.- Install the the basic requirements for building Qt applications.
2.- Download Qt. I recommend Qt 5 using an offline installer. Otherwise, you'd need to compile from the source. Here you have a list of older versions of Qt.
3.- Set the environment variable PATH to the directory where you Qt bin directory is installed.

Qt5 QML error QtQuick QtGraphicalEffects is not installed

After successful compilation of project, I have get an executable file.
When I type ./program in result I see:
QML Error: qrc:///qml/main.qml:25:1:module "QtGraphicalEffects" is not installed
qrc:///qml/main.qml:24:1:module "QtQuick" is not installed
I'm using QtQuick 2.0, Qt5 and Ubuntu, QtQuick and QtGraphicalEffects are in ~/Qt5.0.2/5.0.2/gcc/qml/ I have install fresh Qt SDK from site project.
I have tried run this application also on Windows 7 but with the same result.
Could anyone help?
This is because Windows or whatever OS you use doesn't know the location of Qt install directory and it can't find the QML plugins sub-dir when you run app outside QtCreator.
You have to take the following directories from your SDK install and copy them beside your executable (and DLL) :
<SDK install path>/<Qt version>/<compiler name>/qml/QtQuick.2
<SDK install path>/<Qt version>/<compiler name>/qml/QtGraphicalEffects
And it should work fine.
Just make sure to have the package installed
I see you mentioned about Ubuntu, if using 14.04 , you can install it by typing this command line :
sudo apt-get install libqt5qml-graphicaleffects
And if it's not found it you can still look for package name on debian based distros :
apt-file search 'qml/QtGraphicalEffects/qmldir'
libqt5qml-graphicaleffects: /usr/lib/x86_64-linux-gnu/qt5/qml/QtGraphicalEffects/qmldir
I had the same problem with Qt5.8.0 and QtCreator 4.2.1 the import QtGraphicalEffects 1.0 was underlined because the module not found!
I added in the .pro file my path to the QtGraphicalEffects 1.0
QML_IMPORT_PATH += /opt/Qt5.8.0/5.8/gcc_64/qml/QtGraphicalEffects
After that it started working!
You can also add this to the "Build Environment" at the project page if the previous setting does not solve your problem. And restart QtCreator.

Unable to configure Qt for static building

Essentially this is a repost of this question which was never answered. I am trying to set up Qt for static linking following these instructions.
So far, all I've done is go to where my Qt version is, and run
configure -static
I get some output, ending in:
Sources are in..............C:\QtSDK\Desktop\Qt\4.8.0\msvc2010
Build is done in............C:\QtSDK\Desktop\Qt\4.8.0\msvc2010
Install prefix..............C:\QtSDK\Desktop\Qt\4.8.0\msvc2010
Headers installed to........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include
Libraries installed to......C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib
Plugins installed to........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/plugins
Imports installed to........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/imports
Binaries installed to.......C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/bin
Docs installed to...........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/doc
Data installed to...........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010
Translations installed to...C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/translations
Examples installed to.......C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/examples
Demos installed to..........C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/demos
WARNING: Using static linking will disable the use of plugins.
Make sure you compile ALL needed modules into the library.
Running syncqt...
I couldn't find a pro file for QtCore module
syncqt failed, return code 9
Please help
It's a known issue compiling Qt 4.8.0 from source.
Just delete syncqt.* in qt bin folder :
http://labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49942
http://labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49951
http://labs.qt.nokia.com/2011/12/15/qt-4-8-0-released/#comment-49953
I'm in the same situation of user963258 and I get the same error.
I deleted syncqt.* from qt bin folder, but I then get the same error
qmake gives code 3 when attempting to configure qt for static building
Why Qt4.8 has so many issues?

ImportError: No module named ldap (Windows XP)

I have installed Python 2.7.1 and python-ldap-2.4.8.win32-py2.7 module. Whenever I type
import ldap
it gives and error.......
ImportError: No module named ldap
Path is set properly, I have only one version of Python i.e. 2.7.1 I have installed python-ldap module properly.
then also I am facing this problem. why so?
Any help is very much appreciated.
Please provide more information to debug this problem.
Are you sure the python-ldap module was installed successfully? (I realize you said it was but if you tried to install it using pip, the install command completes with errors because it is missing some header files for the build)
The easiest way to install python-ldap on Windows is to download the binary from: http://pypi.python.org/pypi/python-ldap
Make sure you download the python-ldap version that corresponds to your installed python version.

Resources