Coder Social home page Coder Social logo

更换背景图片 about pyqt5-yolov5 HOT 6 OPEN

javacr avatar javacr commented on July 1, 2024
更换背景图片

from pyqt5-yolov5.

Comments (6)

GHigher12 avatar GHigher12 commented on July 1, 2024 1

问题已解决,需要重新生成的qrc文件转换为py文件,然后再ui转换的py文件import生成的qrc转换的py文件

from pyqt5-yolov5.

winqihe avatar winqihe commented on July 1, 2024 1

将ui文件使用 pyuic5 win.ui > win.py 执行

from pyqt5-yolov5.

GHigher12 avatar GHigher12 commented on July 1, 2024

同问

from pyqt5-yolov5.

winqihe avatar winqihe commented on July 1, 2024

同问,是ui文件修改后需要编译吗

from pyqt5-yolov5.

xxxjjjx avatar xxxjjjx commented on July 1, 2024

问题已解决,需要重新生成的qrc文件转换为py文件,然后再ui转换的py文件import生成的qrc转换的py文件

你好,能仔细讲解一下,没看懂。具体怎样更换这些图标

from pyqt5-yolov5.

lpc-eol avatar lpc-eol commented on July 1, 2024

问题已解决,需要重新生成的qrc文件转换为py文件,然后再ui转换的py文件import生成的qrc转换的py文件

你好,能仔细讲解一下,没看懂。具体怎样更换这些图标
@xxxjjjx @xing-bing
Let me explain it by taking an example of changing an icon:

  1. Edit the .ui file (.ui file could open with QtDesigner). You can install the QtDesigner by pip install pyqt5-tools
  2. Generate the .py file using pyuic5 pyuic5 yourfile.ui -o yourfile.py
  3. I found that the icon is not showing. The relative paths in the .ui file cause the issue.
    Thus, you need to add icon paths to the .qrc, i.e. apprcc.qrc
  4. Generate the apprcc_rc.py file from the apprcc.qrc , using pyrcc5 apprcc.qrc -o apprcc_rc.py
  5. Run main.py to check it

from pyqt5-yolov5.

Related Issues (20)

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.