Questions tagged [pyqt4]

PyQt is a set of Python bindings for Qt application framework and runs on all platforms supported by Qt including Windows, MacOS/X and Linux.

PyQt is developed by Riverbank Computing.

It is available on all platforms under a variety of licenses including the GNU GPL (v2 and v3) and a commercial license.

Unlike Qt, PyQt v4 is not available under the LGPL.

5631 questions
2
votes
2 answers

pyqt installation question

Im planing to do some GUI development using pyqt4 pykde and python3.1 on Kubuntu 10.4. In the research I did I found out that most of the things are available as packages in repositories and some of the packages are preinstalled. Only thing is I'm…
nik
  • 8,387
  • 13
  • 36
  • 44
2
votes
2 answers

How can I load session information into qtwebkit?

I am building a specialized browser based on Qtwebkit. I would like to save the session information when logging into authenticated websites and load this information again when I restart the browser. How can I do this?
txwikinger
  • 3,006
  • 1
  • 25
  • 33
2
votes
1 answer

Get table row values based on whether QCheckbox is checked

I have an issue getting the values of a QTableWidget based on whether a QCheckBox is checked. from PyQt4 import QtGui import cx_Oracle from PyQt4.QtGui import * from PyQt4.QtCore import Qt from sympy import true class PCFFileChecker(QFrame): …
user4311023
2
votes
1 answer

How to pass an extra arguments to PyQt slot?

Hello everyone. I am making simple model/view application using python3.4 and PyQt5 in Windows 7. First of all, here is my code. import sys from PyQt5.QtWidgets import QApplication, QWidget, QListView from PyQt5.Qt import QStandardItemModel,…
passion053
  • 473
  • 3
  • 8
  • 21
2
votes
1 answer

Widget on corner QTabBar is not in corner

I have a pushbutton to add a tab in a QTabWidget. But when I change the button's size, it's not in the corner anymore. So how can I bring it to the corner like in the first picture? Not change size: Change size: Here is my code: from PyQt4 import…
mozart
  • 129
  • 11
2
votes
1 answer

How do I change a label's font (and font size)

Almost all of the sources I've seen while searching are outdated for such a simple question. How can I change a label's font and size in pyqt4?
Pop Car
  • 363
  • 5
  • 15
2
votes
2 answers

Typing in File Path in GUI and Using it to Run a Program Within Same GUI

I am trying to input a file path in a line edit box within a PyQt GUI and then perform functions on that file. I'm hoping this can be done all within the same GUI. Is this even possible?
SepticReVo
  • 45
  • 9
2
votes
1 answer

Populate next field in table with previous data if prior field is empty

I have a CSV communicating directly with a series of points and lines in an application I'm developing out of QGIS 2.8. The CSV is a bit problematic, however. The hardware that provides the CSV data only provides location data every few rows. That…
Alex92
  • 133
  • 4
2
votes
2 answers

python2.7 sip endless makefile

This will be my first question. I have searched through the other questions but unfortunately none of them solved my problem(s). I'm running 32-bit Python (2.7) on Win7. I want to install the PyQt4. I have downloaded PyQt-win-gpl-4.11.4.zip and…
selimcan
  • 84
  • 2
  • 9
2
votes
2 answers

How can insert a symbol "&" in a string in PyQT

How can i insert a a symbol\operator "&" between the strings in python Qt QPushbutton Apply_button = QtGui.QPushButton("Apply & Change") i get the buttontext as Apply Change but the 'and &' symbol is missing
user2345
  • 537
  • 1
  • 5
  • 22
2
votes
2 answers

Using PyQt and Qt4, is this the proper way to get a throbber in a QTabWidget tab?

I have some code creating a QTabWidget from Python using PyQt4. I want to get a 'throbber' animated gif in the tab. The /only way/ I have found how to do this is the following convoluted method. tabBar = self.tabReports.tabBar() lbl =…
EB.
  • 3,383
  • 5
  • 31
  • 43
2
votes
1 answer

Ping-Tool in PyQt4 and Scapy

I'm trying to make a little pinging tool with Scapy and PyQt4. The code is fairly simple and all it does now is pinging an address the user can type in. from PyQt4 import QtGui import sys from scapy.all import * from scapy.sendrecv import sr,…
vicco
  • 1,049
  • 2
  • 14
  • 33
2
votes
2 answers

Python pyqt4 access QTextEdit from function

I'm trying to write a notepad application, so far i have a gui without functionality. Every element of my gui is in separate function, and then is called in init method. For example in create_new_file(self) function I was trying to get text from…
Przemek
  • 161
  • 1
  • 1
  • 4
2
votes
1 answer

how to highlight and change the line selection upon button press in QTextEdit PYQT

i am trying to highlight the line in the QTextEdit upon pressing ^ and v button to scroll up and down, and print selected item upon enter / selection. Below is the code snippet. I am unable to get how to highlight items. #!/usr/bin/python """…
user2190483
  • 269
  • 1
  • 5
  • 22
2
votes
1 answer

PyQt4 - QTableView - How to loop over QTableView

I tried to find an example in python where I can loop over model elements of a QTableView and print the entire row. I have found how to loop over selected rows but nothing when rows are not selected. Can someone help me? No need to tell me how to…
Marian
  • 33
  • 3
1 2 3
99
100