Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pyqt4

Attributeerror: 'qstring' Object Has No Attribute 'rfind'

My application runs fine in one computer but when I run the same application in another I get the e… Read more Attributeerror: 'qstring' Object Has No Attribute 'rfind'

How To Convert Qimage(qpixmap) To Pil Image In Python 3?

I would like to convert a image from QImage or Qpixmap class to PIL Image. I found this: Convert Py… Read more How To Convert Qimage(qpixmap) To Pil Image In Python 3?

Pyqt Window Focus

I am trying to give focus to a window if the user clicks on another window. Right now i have two wi… Read more Pyqt Window Focus

Replace Qwidget Objects At Runtime

In my application I have to replace all QLineEdit elements with customized QLineEdit. To do that th… Read more Replace Qwidget Objects At Runtime

Typeerror: Accept Missing 2 Required Arguments (still Functional)

This is a curiosity question. I have a block of code that executes upon an accepted.connect(). It … Read more Typeerror: Accept Missing 2 Required Arguments (still Functional)

Pyqt 4 - Global Name 'signal' Is Not Defined

I am trying to connect a push button signal to a callable I created, but for some reason this error… Read more Pyqt 4 - Global Name 'signal' Is Not Defined

How Can I Retrieve Data From A Qtablewidget To Dataframe?

I have a QTableWidget in editable mode in which user puts in integer input , how can I generate a l… Read more How Can I Retrieve Data From A Qtablewidget To Dataframe?

Resizing Widgets In Pyqt4

I have created a main window using Qt designer that has a tabwidget in it. My problem is that when … Read more Resizing Widgets In Pyqt4

How To Put Widgets Inside A Pyqt Qmdisubwindow

Sorry, my question may sound very stupid but Frankly i spend a lot of time on internet trying to fi… Read more How To Put Widgets Inside A Pyqt Qmdisubwindow

Interrupting Qthread Sleep

I would like to know how to pause a QThread and then resume when I get a signal. I have read and kn… Read more Interrupting Qthread Sleep

Installing Pyqt4 In A Virtualenv

I am trying to install PyQT4 in a virtualenv. I am running Python3.2.1. Here's what I've do… Read more Installing Pyqt4 In A Virtualenv

How Do I Check If A Checkbox Is Checked Or Unchecked? (in Qtreewidget)

I have written the code below: from PyQt4 import QtCore, QtGui import sys class window(QtGui.QMain… Read more How Do I Check If A Checkbox Is Checked Or Unchecked? (in Qtreewidget)

How Do I Catch A Pyqt Closeevent And Minimize The Dialog Instead Of Exiting?

I have a QDialog object. When the user clicks on the X button or presses Ctrl+Q, I want the dialog… Read more How Do I Catch A Pyqt Closeevent And Minimize The Dialog Instead Of Exiting?

How To Find The Active Pyqt Window And Bring It To The Front

I'm new to PyQt. I have been searching on how to find the window of my PyQt app which is curren… Read more How To Find The Active Pyqt Window And Bring It To The Front

Select Text Of Textedit Object With Qtextcursor, Qtextedit

I have a textEdit field and I want to process some selected text within this field (but not the for… Read more Select Text Of Textedit Object With Qtextcursor, Qtextedit

Printing Qprocess Stdout Only If It Contains A Substring

A PyQt4 app runs ping in a QProcess. A QTextEdit named self.output will output everything from ping… Read more Printing Qprocess Stdout Only If It Contains A Substring

Passing Parameter To A Pyqt Thread When Started

Is there any way we can pass a parameter to QThread when the thread is started (.start) ? I found a… Read more Passing Parameter To A Pyqt Thread When Started

How To Programmatically Change/update Data In Python Pyqt4 Tableview?

I would like to have a table within a QWidget window and update the table each time the user enters… Read more How To Programmatically Change/update Data In Python Pyqt4 Tableview?

Embed Matplotlib Into Pyqt As A Custom Widget

I was trying embed matplotlib in python into Qt Designer as a custom widget, i followed one of thos… Read more Embed Matplotlib Into Pyqt As A Custom Widget

Changing The Color Of A Qprogressbar()

I was wondering whether it's possible to change the color of a PyQt Progressbar? I have the fol… Read more Changing The Color Of A Qprogressbar()