pyqt4 Questions
4
7
Solved
Goal
My goal is to have a QTableWidget in which the user can drag/drop rows internally. That is, the user can drag and drop one entire row, moving it up or down in the table to a different locatio...
15
Solved
Is there a way to clear (delete) all the widgets in a layout?
self.plot_layout = QtGui.QGridLayout()
self.plot_layout.setGeometry(QtCore.QRect(200,200,200,200))
self.root_layout.addLayout(self.plo...
3
Solved
I got this code:
from PyQt4 import QtGui, QtCore
class MyFrame(QtGui.QGraphicsView):
def __init__( self, parent = None ):
super(MyFrame, self).__init__(parent)
scene = QtGui.QGraphicsScene()
...
5
I've been writing a small utility application using Python 3 (the below testcase also works in Python 2, however) and PyQt 4 that uses the code module to spawn a REPL prompt allowing interaction wi...
Crock asked 29/10, 2011 at 10:49
3
Solved
First, I use Windows 7-64 bit with PyQwt5.2.0, PyQt4.5.4, NumPy1.3.0, python2.6.2 32-bit for compatibility reasons.
While runnning my script this appears:
QWidget: Must construct a QApplication b...
8
Solved
Before I attempt to write my own Python PyQt4 module functions... I wanted to ask if anyone has such a function to share.
In many of my python programs where I have a GUI built using PyQt4 and qt...
3
Solved
In PyQt, how does one display a file browser that shows and selects only directories (not files)?
And how does one retrieve the name of the selected directory?
Exculpate asked 26/11, 2010 at 14:19
3
Solved
I'm using QtableView to show my logs and to filter them by column, QSortFilterProxyModel is used. If i filter one column using certain value, and with the filtered data, if i try to filter second c...
Bora asked 9/11, 2017 at 12:11
15
Solved
I try to compile a Python project under Windows 7 using PyInstaller. The project works fine, there are no issues, however when I try to compile it the result doesn't work. Though I get no warnings ...
Ipswich asked 8/9, 2014 at 21:34
2
Solved
I have made a qss file of pyqt stylsheet and how am I supposed to call the file content and feed to self.setStylesheet(..)?
from PyQt4 import QtCore
s = QtCore.QString('c:\myProject\darkFantasy.sty...
Marte asked 24/1, 2013 at 17:6
2
Solved
I am working with PyQt and am attempting to build a multiline text input box for users. However, when I run the code below, I get a box that only allows for a single line of text to be entered. How...
10
Solved
I am trying to convert ui file created by QTDesigner to py file. but i get the error:
pyuic5 is not recognized as an internal or external command.
I use anaconda 3, and tried all suggestions here:
...
8
Solved
I have a simple application that runs a process that can last for several minutes before completing. I am trying to provide an indication to the user that it is processing the request - such as cha...
Romany asked 21/11, 2011 at 21:39
6
Solved
I'm using Python 3.4.4 on Centos7.
I've created a python program on my local machine that makes use of qt modules. The program is running fine on my local machine.
I'm now trying to create an exec...
Highfalutin asked 28/3, 2017 at 10:24
6
Solved
i have the following code defining the gui of my app
class Ui (object):
def setupUi():
self.tableName = QtGui.QTableWidget(self.layoutWidget_20)
self.tableName.setObjectName(_fromUtf8("twHistor...
Nonmetallic asked 11/10, 2011 at 14:42
4
Solved
I am using PyQt based on Qt4. My Editor is PyCharm 2017.3 and my python version is 3.4. I am scraping some text from a website. I am trying to align that text to the center of the cell in a QTableW...
Philadelphia asked 25/12, 2017 at 19:0
3
I would like a TextItem that maintains a constant position on the graph while scaling the y-axis, essentially the same functionality as legend only as a TextItem where I can change the text as need...
3
Solved
I have a QTableWidget where I would like to color individual horizontal header items based on some criterion.
What I have come up with so far:
stylesheet = "::section{Background-color:rgb(190,1,...
3
Solved
How to set QTableWidget upper left corner using a background image? Now it is white. (Pointed in the image below)
This is my style sheet code:
QWidget {
background-image: url(src/bg.jpg);
col...
Backwater asked 3/1, 2017 at 10:3
7
Solved
We have a window with several components in QDockWidgets. Ideally, we'd like to have all components dockable, but there is one component that will likely always be visible. So we made that the cent...
2
Solved
I used this to set the style for my QTableWidget. Everything in the table is affected except the horizontalheaderlabels and the row numbers.
Table.setStyleSheet("Background-color:rgb(100,100,100)...
Glary asked 5/10, 2013 at 14:1
7
Solved
I'm a beginner in PyQt. I was trying to create a simple app to try some of the toolkit's many features. My question is, how can I hide the app icon from the taskbar?
I don't want the user to be ab...
4
I currently have a working GUI that implements a QTableWidget (not to be confused with a QTableView). This QTableWidget takes in a live stream of data and I want to have it so the vertical scroll b...
Christos asked 13/6, 2014 at 17:51
1 Next >
© 2022 - 2025 — McMap. All rights reserved.