Git Product home page Git Product logo

pyqt-integration's People

Contributors

mine2chow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pyqt-integration's Issues

No Name 'QFont' in module 'PyQt5.QtGui

Issue Type: Bug

No Name 'QFont' in module 'PyQt5.QtGui

Extension version: 0.2.0
VS Code version: Code 1.44.0 (2aae1f26c72891c399f860409176fe435a154b13, 2020-04-07T23:31:18.860Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (8 x 1996)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 14.95GB (7.58GB free)
Process Argv
Screen Reader no
VM 0%

Qt Designer run error?

Hi use new pyqt5-tools and info show bellow.

C:\Users\dell>pip show pyqt5-tools
Name: pyqt5-tools
Version: 5.15.4.3.2
Summary: PyQt Designer and QML plugins
Home-page: https://github.com/altendky/pyqt-tools
Author: Kyle Altendorf
Author-email: sda@fstab.net
License: GPLv3
Location: d:\python38\lib\site-packages
Requires: python-dotenv, click, pyqt5, pyqt5-plugins
Required-by:

New version designer need run it terminal as pyqt5-tools designer to open it.

I configure it in vscode as
image

But is run error as show bellow:
image

No Name 'Qt' in module 'PyQt5.QtCore'

Issue Type: Bug

No Name 'Qt' in module 'PyQt5.QtCore'

Extension version: 0.2.0
VS Code version: Code 1.44.0 (2aae1f26c72891c399f860409176fe435a154b13, 2020-04-07T23:31:18.860Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (8 x 1996)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 14.95GB (7.33GB free)
Process Argv
Screen Reader no
VM 0%

the extension cannot be activated in win7

I install the extension in offline mode with the command "code --install-extension xx.vsix",however the extension cannot be activated and I cannot find any settings about the extension.Could you please help me fix the problem.Thx

I can't import PyQt5 or PyQt6

Hi, I'm using Windows and installed PyQt5 with 'pip install PyQt5' .But I can't
import it in py project . I get " ModuleNotFoundError: No module named 'PyQt5' " error How can I solve this.

qtdesigner.path - Handle relative paths from workspace or venv

Qt Designer is now often used within the PyQt5-tools package (as you say into your readme) and it could be great to allow relative paths for the pyqt-integration.qtdesigner.path (and others):

  • from the ${workspaceFolder}
  • or from the python.pythonPath

Can not use preview

problem: Can not preview .ui file

source ui file: qt-material/main_window.ui at master · UN-GCPDS/qt-material · GitHub

information:

  • PyQt5:5.15.4

  • pyqt5-plugins:5.15.4.2.2

  • PyQt5-Qt5:5.15.2

  • PyQt5-sip:12.9.0

  • pyqt5-tools:5.15.4.3.2

  • PyQtWebEngine:5.15.4

  • PyQtWebEngine-Qt5:5.15.2

  • qt5-applications:5.15.2.2.2

  • qt5-tools:5.15.2.1.2

description:

I use plugin PyQt Integration on VS Code, and use function preview to preview an example ui project from GitHub - UN-GCPDS/qt-material.

However, I received an error. I use these command to reshow the sense:

pyuic5 -d -p %filename%

And with error output below:

(qt5) D:\Workspaces\VSCode\VDAP>D:\Workspaces\Conda\envs\qt5\Scripts\pyuic5.exe -d -p full_features\main_window.ui
PyQt5.uic.uiparser: uiname is MainWindow
PyQt5.uic.uiparser: toplevel widget is QMainWindow
PyQt5.uic.properties: setting property geometry
PyQt5.uic.properties: setting property windowTitle
PyQt5.uic.uiparser: push QMainWindow MainWindow
PyQt5.uic.uiparser: push QWidget centralwidget
PyQt5.uic.uiparser: push QGridLayout gridLayout_17
PyQt5.uic.properties: setting property tabPosition
PyQt5.uic.properties: setting property currentIndex
PyQt5.uic.properties: setting property tabsClosable
PyQt5.uic.uiparser: push QTabWidget tabWidget_2
PyQt5.uic.uiparser: push QWidget tab
PyQt5.uic.uiparser: push QGridLayout gridLayout_22
PyQt5.uic.properties: setting property currentIndex
PyQt5.uic.uiparser: push QToolBox toolBox
PyQt5.uic.properties: setting property geometry
PyQt5.uic.uiparser: push QWidget page
PyQt5.uic.uiparser: push QGridLayout gridLayout_14
Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
Traceback (most recent call last):
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\pyuic.py", line 75, in main
    exit_status = driver.invoke()
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\driver.py", line 57, in invoke
    return self._preview()
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\driver.py", line 71, in _preview
    widget = loadUi(self._ui_file)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\__init__.py", line 238, in loadUi
    return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\Loader\loader.py", line 66, in loadUi
    return self.parse(filename, resource_suffix)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 1037, in parse
    actor(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 828, in createUserInterface
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 503, in createLayout
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 546, in handleItem
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 503, in createLayout
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 546, in handleItem
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 503, in createLayout
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 546, in handleItem
    self.traverseWidgetTree(elem)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 264, in createWidget
    self.stack.push(self.setupObject(widget_class, parent, elem))
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 228, in setupObject
    obj = self.factory.createQObject(clsname, name, args, is_attribute)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\objcreator.py", line 100, in createQObject
    factory = self.findQObjectType(classname)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\objcreator.py", line 125, in findQObjectType
    w = module.search(classname)
  File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\Loader\qobjectcreator.py", line 69, in search
    self._module = __import__(self._moduleName, {}, {}, self._classes)
ImportError: QtWebEngineWidgets must be imported before a QCoreApplication instance is created

(qt5) D:\Workspaces\VSCode\VDAP>

If anyone know what is this about? Thanks.

Don't work inside a virtual environment

If PyQt and releted packages are installed in a virtual environment all the commands fail. The error is as follow:
Error: Command failed: "pyuic5" -p "c:\Users\pikulenkor\Documents\pyqt5\lesson 27\main_window.ui" '"pyuic5"' is not recognized as an internal or external command, operable program or batch file.

Pyuic option

It is great tool which has nice feature.

Can you add the new feature which has "pyqt-integration. pyuic.compile.addOptions?

Thanks for contribution again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.