Results 1 to 3 of 3

Thread: problem QKeyPressEvent. how to hinder the short waiting time while pushing a button?

  1. #1
    Join Date
    May 2013
    Posts
    3
    Platforms
    Windows

    Default problem QKeyPressEvent. how to hinder the short waiting time while pushing a button?

    hello everyone
    I just have a quick question. I made a program which moves an QGraphicsPixmapItem with QKeyPressEvent(I am using ASDW to move the item) and my problem is when I push the button without releasing my item does not move smoothly. Just like writing AAAAAAAAAAAAAAA without releasing the button. it moves a bit first then waits for a little longer and then continues. Do any one of you guys know how to fix this?
    Thanks anyway

  2. #2
    Join Date
    Feb 2013
    Location
    India
    Posts
    153
    Thanks
    27
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: problem QKeyPressEvent. how to hinder the short waiting time while pushing a butt

    Your quetion is not clear to us.,
    Copy the source and give a little more description on that.

  3. #3
    Join Date
    May 2013
    Posts
    3
    Platforms
    Windows

    Default Re: problem QKeyPressEvent. how to hinder the short waiting time while pushing a butt

    Actually in this case you dont need a code. Just open a empty notpad and try writing AAAAAAAAAAAAAAAAAAAAAAAA without releasing the button and you will understand what i mean.
    The computer will write just one A first then will make a small pause and then then after that it will continue with the other AAAAAAAs. It prevents people from doing mistakes while writing.
    But in my case i dont need that small pause. My item must go fluently, without a break or a pause.

Similar Threads

  1. Replies: 0
    Last Post: 5th January 2013, 13:29
  2. Replies: 2
    Last Post: 31st July 2012, 08:55
  3. Sending text from QTextEdit to QListWidget on pushing QPushButton - Qt
    By TheIndependentAquarius in forum Qt Programming
    Replies: 1
    Last Post: 23rd February 2012, 07:33
  4. Using Short cut keys
    By joseph in forum Qt Programming
    Replies: 14
    Last Post: 18th March 2008, 19:34
  5. Tiff in unsigned short
    By spawnwj in forum Qt Programming
    Replies: 14
    Last Post: 26th July 2006, 07:41

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.