PyQt
   7 tags on

0 answers

Twisted-PyQt4 segmentation faults

I'm using PyQt 4.9.1 on Ubuntu 12.04 (amd64) (tried with both python 2.6 and 2.7) to make a headless browser, but i'm getting: Program received signal SIGSEGV, Segmentation fault. Here is a simplified …

1 answer

TypeError: native Qt signal is not callable

Im trying to make a request to a protected webpage, so therefore im trying to authenticate with help from QAuthenticator(). However, i get the following error: mgr.authenticationRequired(response, …

2 answers

PyQt4 custom widget (uic loaded) added to layout is invisible

I've created a custom widget in pyqt4 that I've worked on and tested and now am ready to load it into my main window. Since it doesn't show up in designer, I need to manually add it to my main window …

1 answer

Design of the 'model' for QTableView in PySide + SQLAlchemy.

My question is really how to setup a SQLAlchemy-declarative model that can be accessed from PySide's QTableView class. I'm just trying to essentially implement a front end for the Object Relational …

3 hours ago
1 answer

Concurrent execution of QThread or QRunnable objects in Python

I have the following code: from PySide.QtCore import * import time class GUI(object): IDLIST = [i for i in xrange(20)] UNUSEDIDS = [i for i in xrange(20)] def __init__(self): …

2 answers

Lambda function and variable scope

Currently, my code is like this: for control in self.controls(): self.connect(control, SIGNAL('clicked()'), lambda: self.button(control.objectName())) When I run my code, my lambda function takes …

1 answer

Refresh QTextEdit in PyQt

Im writing a PyQt app that takes some input in one widget, and then processes some text files. What ive got at the moment is when the user clicks the "process" button a seperate window with a ...

15 hours ago
2 answers

How to set which browser to use in a QTextBrowser link?

I am using PyQt4's QTextBroswer to display a html link. Whenever users click on the link, a browser will be used to open the internet page. My question is, is there a way to set so that our own ...

16 hours ago
1 answer

pyqt4 python QLabel show when push button clicked

What i am trying to achieve is when user pressed push button, i want to show initially hidden QLabel. However, on that push button i have assigned a heavy duty scanning which takes about 2-3 minutes …

yesterday
2 answers

Events and signals in Qt's QGraphicsItem: How is this *supposed* to work?

Like other primitives in Qt, QGraphicsItems can handle mouse events and the like. Sweet! Now say I need for an event on one QGraphicsItem to be propagated to some other QGraphicsItems in the same ...

yesterday
4 answers

Progress Bar issues in PyQt4

I have developed a GUI that is used to extract some data from a file. This process takes a long time. During the time when the program is processing the outside file (using subprocess.Popen), the ...

yesterday
1 answer

Connect the same signal from several widgets to the same function in PyQt?

Well, i have this app which has a lot o lineEdit widgets on it (more than 20 actually). And on the end of it, i have another lineEdit that is supposed to show the sum of the values on the other ...

2 days ago
1 answer

Position cursor at specifc line

I want to put the cursor at the start of a line in a QPlainTextEdit specified by its line number. The problem is I have the "real" line number, i.e. the number of \n between the line and the start, …

2 days ago
2 answers

Delete sender in seperate slot

I have an object that emits 3 different signals, and I would like to transfer these signals as well as delete the sender of them. This object is located in another object that will act as the emitter …

1 answer

QKeyEvent: finding originating widget?

I have a rather complex widget structure which representes a list of some objects. The containing frame reacts to some QKeyEvents (such as Alt+Up) which the child widgets don't process themselves. ...

1 answer

PyQt Release vs Debug

I have a system,written on PyQt4. It is mostly developed and debug under linux (ubuntu) systems, in Eric IDE, and everything works fine. Last task was to create a nested editor for a table cell. So, i …

2 days ago
1 answer

Is it possible to connect a signal to a static slot without a receiver instance?

Is it possible to connect a signal to a static slot without a receiver instance? Like this: connect(&object, SIGNAL(some()), STATIC_SLOT(staticFooMember())); There is a ...

2 days ago
2 answers

How to check if a key modifier is pressed (shift, ctrl, alt)?

I am building a UI with QT designer and want buttons to perform different actions with different modifiers. So I thought I could call functions with dynamic string properties that would perform the …

2 days ago
1 answer

SQLAlchemy mysql dialect error with py2app

I'm having trouble getting SQLAlchemy to work with my compiled app after getting through py2app. I've done this successfully in Windows with py2exe. The following is my setup file: APP = ['Blah.py'] …

2 days ago
1 answer

Displaying a standard icon and text in QLabel

I want to display a standard warning icon along with some description text in QLabel in pyqt. Qlabel doesn't have setIcon function. So how could i do that? Any help would be appreciated.

2 days ago
1 answer

PyQt configuration and installation error

I'm trying to install PyQt for Maya on my Macbook pro. I've succesfully installed Qt and Sip and I'm failing to install PyQt. The versions I'm using are OSX 10.6.8, Qt 4.7.1 - modified Autodesk Qt, …

2 days ago
2 answers

Skype-style infobox to bottom right corner of screen with PyQt4

What I understand skype is developed in Qt, and skype has information boxes that appear on bottom right. Can I make these information boxes with PyQt4 running on Ubuntu? "Infobox" means something like …

May 13 at 14:37
3 answers

PyQT and threads

I am developing an application that uses multiple threads to gather data from a variety of network devices. I'm using PyQT to display the collected data on a GUI. I am using regular python threads ...

May 12 at 23:58
1 answer

QWizard and forms for each QWizardPage

I'm writing an application in Qt for my university project. As my main widget I chose QWizard. I decided to make a form (ui file) for each of the QWizardPage that will be in the wizard. I added the …

May 12 at 20:28
1 answer

PyQt GUI freeze during imap connection (imaplib)

I have written a python program with a PyQt GUI that, using the imaplib, checks if I have new mails, here is part of the code: def getAccountStatus(self, accountIndex): # some not interesting code …

May 12 at 15:48
1 answer

styling qt4 widget to be darker/lighter than its current color

I have a pyqt4 app which should run with arbitrary colorscheme. I would like to make some widgets more visible by making them lighter or darker than their style-predefined color. I would like it to …

May 11 at 18:14
1 answer

How to clip unclosed path in Qt QGraphicsScene

I have QGraphicsView with QGraphicsScene and I need to draw unclosed paths (which may contain lines, or Bezier curves) in limited area of scene defined by rect. There is simple way to clip closed ...

May 11 at 16:29
2 answers

How to allow resizing of QMessageBox in PyQt4

I'm using the nice feature in QMessageBox to optionally show detailed text to the user. However, the window after expansion is still fairly small, and one immediately tries to resize the window so ...

May 11 at 15:37
1 answer

PyQt4: Create a custom dialog that returns parameters

I'm attempting to add a custom dialog box to my current GUI that can be launched for the user to set some parameters. Ideally, I would like to create the custom dialog using QtDesigner. Below is the …

May 11 at 14:08
15 30 50 per page
1 2 3