Results 1 to 2 of 2

Thread: keyPressEvent issue

  1. #1
    Join Date
    Sep 2008
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default keyPressEvent issue

    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.

  2. #2
    Join Date
    Sep 2008
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: keyPressEvent issue

    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

Similar Threads

  1. Replies: 1
    Last Post: 28th October 2008, 16:29
  2. Replies: 6
    Last Post: 13th May 2008, 13:19
  3. QTreeWidget keyPressEvent
    By hgedek in forum Qt Programming
    Replies: 3
    Last Post: 18th August 2007, 16:33
  4. qt3 to qt4 - uic issue
    By hvengel in forum Qt Programming
    Replies: 10
    Last Post: 4th March 2007, 02:59
  5. Replies: 5
    Last Post: 22nd September 2006, 08:04

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.