我想在我的Qt 5.9.2上使用Windows下的QtWebEngineWidgets.QWebEngineView中的WebGL。
但是当我尝试在QWebEngineView中加载webglreport.com时,它告诉我,"This browser supports WebGL 2, but it is disabled or unavailable."
我怎么才能修复它?
下面是我的代码:
PyQt:
import os, sys
from PyQt5 import QtCore, QtGui, QtWidgets, QtWebEngineWidgets
if __n
我在Debian1032位上构建Qt5。然后,我创建了一个最小的Qt项目,运行$ ~/qt/qt-everywhere-src-5.12.7/qtbase/bin/qmake project.pro和make,但当我尝试执行应用程序时,我执行以下操作: 这是怎么回事? $ ./release/project
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin
我在我的笔记本电脑上交叉编译了Qt5.12,并将其安装在运行Raspbian Stretch OS的Raspberry Pi 3上。我正在尝试远程调试(从QtCreator)在RPi上运行的应用程序。 当我用./app -platform xcb这样的命令从RPi终端运行我的Qt应用程序时,它工作得很好,但当我试图从远程调试会话运行相同的应用程序时,我得到了以下输出: Could not load shared library symbols for /usr/local/qt5pi/plugins/platforms/libqxcb.so.
Do you need "set sol
My环境: Ubuntun 20.10,Python3.8.6,
pip冻结输出:
PyQt5==5.15.4PyQt5-Qt5==5.15.2PyQt5-sip==12.8.1pyqtgraph==0.12.1PySide2==5.15.2PySide6==6.0.3shiboken2==5.15.2shiboken6==6.0.3
python plotting.py
错误消息:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
我在Ubuntu20.04上运行Anki,按照他们的网页上的说明。但是,尝试从命令行或应用程序菜单启动它是行不通的。错误如下:
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix th
长版本
我使用WebGL作为平台在浏览器中运行QML应用程序。一切都很好,直到我尝试集成QtVirtualKeyboard来填充一些文本字段和可编辑的组合框。在浏览器中运行项目时,收到的第一条消息是:
This plugin does not support dynamic OpenGL loading!
但是,我怀疑此错误消息/警告没有链接到VirtualKeyboard ( VK ),因为删除VK的所有痕迹并不会使消息消失。下面可以查看浏览器窗口的屏幕截图。
下一条消息发生在单击文本输入字段时:
This plugin does not support setting window m
当我试图用./deemix-pyweb打开一个可执行文件时,会出现以下错误:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform
当试图为我的pyside2应用启用远程ui时,im会收到以下错误:
python3 app.py -platform webgl
qt.qpa.plugin: Could not find the Qt platform plugin "webgl" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available plat
如何在Ubuntu20.04中解决这个问题?
Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstallin
我有一个项目要做,使用Python。我必须做一个图形用户界面,所以我选择通过PySide2使用Qt。在Windows上,一切运行都没有问题。但是当我尝试在Debian上运行我的项目时,我遇到了这个问题:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
No protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not
我在使用Ubuntu,当我从pyqt运行我的程序时,我得到了这个错误,
QObject::moveToThread: Current thread (0xa549e0) is not the object's thread (0x4b7bfc0).
Cannot move to target thread (0xa549e0)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/mialo/.local/lib/python3.8/site-packages/cv2/qt/p
我一直在使用Qt Wayland插件为linux开发一个显示管理器。我尝试在终端会话上运行我构建的显示管理器,但结果如下所示
qt.qpa.plugin: Could not find the Qt platform plugin "wyland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platfor
我在Windows 10中使用PyQt5开发了一个Python程序,它运行得很好。然后我用pyinstaller将它输入到pyinstaller文件中,但是失败了,给了我一个错误。
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
Available platform plugins are: minimal, offscreen, webgl, windows.
我在这里
我正在运行一个脚本来绘制一些数据。但是当我运行它时,它失败了,我在控制台中得到了这个:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available p
我使用pyqt5和opencv创建了一个GUI应用程序。该应用程序在不激活虚拟env的情况下运行良好,但当我激活虚拟env并运行该应用程序时,它将显示以下错误:
QObject::moveToThread: Current thread (0x125b2f0) is not the object's thread (0x189e780).
Cannot move to target thread (0x125b2f0)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/de
我很难让Matplotlib在Ubuntu21.04上工作。每当我想要画一些东西时,我都会收到以下错误消息:
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plug
我想在不同的系统上运行一个PyQt5应用程序。当它在Qt5支持的系统上运行时,一切都很好。否则,我想要自动切换到基于文本的界面。
当我试图在错误的环境中启动应用程序(例如,通过SSH进行测试)时,我会得到以下错误:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no
在更新我的Artix/Arch Linux发行版之后,使用:
sudo pacman -Syu
这就是发生的事情:
我启动系统。
我使用KDE环境登录。
所有默认的图形应用程序在登录后都会正确启动。
如果我尝试从已经打开的控制台启动控制台应用程序,它将成功运行。
我可以看到内核已经更新了(5.11.6-zen1-1-zen)。
如果我试图启动任何图形应用程序(无论是从KDE还是从命令行),我都会得到以下错误:
。
No protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not