Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

pyqt5

QListWidget.itemClicked doesn’t work reliably with styled items

August 23, 2022 by Magenaut

I have a QListWidget containing one item, I want the item’s texts to be partially bold, so I created a QItemWidget for it. I use a QLabel in it to display the partially bold texts, the code is as follows:

Categories Python, Q&A Tags pyqt, pyqt5, python, qt Leave a comment

QtDesigner changes will be lost after redesign User Interface

August 22, 2022 by Magenaut

I’m using Qt Designer for design GUI to use in python, after designing my desired UI in Qt Designer, convert it to python code and then I changed generated code to do some action in my python code, but if I changed the UI with Qt Designer and convert it to python code again, I lost my previous changes on my code.

Categories Python, Q&A Tags pyqt, pyqt5, python, qt-designer Leave a comment

Passing extra arguments through connect

August 21, 2022 by Magenaut

Is it possible to pass variables through slots so I can print out certain text?
Trying to pass variable ‘DiffP’ which is defined in another function to slot.

Categories Python, Q&A Tags pyqt, pyqt5, python, python-3.x, qt-signals Leave a comment

PyQt showing video stream from opencv

August 19, 2022 by Magenaut

Try to link PyQt and Opencv video feed, can’t understand how to apply while loop for continuously streaming video. It just take a still picture.Please can anyone help to solve the problem.

Categories Python, Q&A Tags opencv, pyqt, pyqt5, python, qpixmap Leave a comment

PyQt: No error msg (traceback) on exit

August 18, 2022 by Magenaut

My PyQt application no longer prints the error (stderr?) to the console.

Categories Python, Q&A Tags pyqt, pyqt5, python, python-3.x, qt-designer Leave a comment

How to add a QVideoWidget in Qt Designer?

August 17, 2022 by Magenaut

I want to insert video in blue box(ui image) but I don’t know how to insert video file.

Categories Python, Q&A Tags pyqt, pyqt5, python, qt-designer, qvideowidget Leave a comment

DLL load failed when importing PyQt5

August 17, 2022 by Magenaut

I have installed PyQt5 on windows platform and and getting an importError: DLL load failed.

Categories Python, Q&A Tags dllimport, importerror, pyqt5, python, python-3.x Leave a comment

Is there a difference between QFileDialog strings in PyQt4 and PyQt5?

August 16, 2022 by Magenaut

I have a block of code that opens a QFileDialog using Python3 and PyQt5:

Categories Python, Q&A Tags pyqt, pyqt4, pyqt5, python, qfiledialog Leave a comment

How to use QScrollArea to make scrollbars appear

August 16, 2022 by Magenaut

I am trying to create a scroll area with a vertical layout using pyqt5, and I am putting inside some labels. I know that even if it is a vertical layout it is supposed to scroll horizontally if the text does not fit. But no matter what I try it does not let me scroll.

Categories Python, Q&A Tags pyqt5, python, qscrollarea Leave a comment

How to add static(html, css, js, etc) files in pyinstaller to create standalone exe file?

August 16, 2022 by Magenaut

I’m using QtWebEngineWidgets, QtWebChannel to create PyQt5 application, which uses HTML, CSS, JavaScript.

Categories Python, Q&A Tags pyinstaller, pyqt, pyqt5, python, qwebengineview Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress