PDA

View Full Version : keyPressEvent issue



oguzy
6th November 2008, 07:03
I was trying to implement a GUI using pyqt4. I created my GUI using the qt4-designer and created the py file from pyuic4. Here: http://rafb.net/p/4TqtFb24.html

Tehn i created another py file to change the appreace and define some connect methods and so on. Here: http://rafb.net/p/0Ydkq255.html

I want the keyPressEvent activate. There is a QGraphicsView at the GUI and i am rendering PDFs. By using the keypressevent i want to change the page numbers automatically.

But seems i am defining the keyPressEvent at the wrong place. Will be happy if someone help.

oguzy
7th November 2008, 15:39
The current issue about this problem is below:

The problem about the GUI is, when i choose the file from file dialog it shows the rendered image at a new window, not inside the QGraphicsView widget. If i solve it i think the event part will start to work in the right way. I read the documents and tried different ways but couldn't find a solution. Will be happy if someone help.

pyuic4 file: http://rafb.net/p/AtaUXc65.html
main file to run via python main.py: http://rafb.net/p/GQhLtQ46.html