Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. keypressevent
    Log in to post

    • SOLVED How to make mouseMoveEvent and keyPressEvent to be called interchangeably?
      General and Desktop • mouseevent qevent qglwidget keypressevent • • BoboFuego  

      8
      0
      Votes
      8
      Posts
      638
      Views

      @BoboFuego said in How to make mouseMoveEvent and keyPressEvent to be called interchangeably?: I don't know how to mark this thread as solved "Topic Tools" at the bottom right side and then "Mark as Solved".
    • SOLVED IP Editor popuppad Delete not clearing LineEdit
      General and Desktop • plugin delete keypressevent ip editor backspace • • Sh1gs  

      13
      0
      Votes
      13
      Posts
      2697
      Views

      @mrjj I've changed it to check if it's in the first edit, to stop the timer so it'd look like 123.___.___.___ And then the user will have to manually hit "Delete" repeatedly to delete the characters. This way, the program doesn't crash. It's not exactly elegant, but it's close enough to the requirements I was given. I have also changed that curEdit->installEventFilter(this) is only called once. Thank you very much for your help, I will go ahead and mark this as solved.
    • UNSOLVED Checking for letters pressed when mouse is pressed
      General and Desktop • keypressevent mousepressevent • • LancelotPops  

      6
      0
      Votes
      6
      Posts
      3086
      Views

      Hi and welcome to devnet, Can you explain why do you need to know whether a letter is currently pressed ? A long press on such a key usually triggers the auto-repeat of the system so it might make things a bit more difficult.
    • SOLVED IP Editor Plugin key_tab issues
      General and Desktop • plugin line edit keypressevent ip editor keytab • • Sh1gs  

      3
      0
      Votes
      3
      Posts
      1075
      Views

      Thank you @jsulm, I thought I read the documentation through, but apparently not. Also, I'm not calling QFrame. I saw the link I posted and used it as more of a guideline to create an IP Editor for my needs. Thank you for your help :)
    • SOLVED Capturing key press in QGraphicsView within main() function?
      General and Desktop • qgraphicsview qgraphicsscene class keypressevent main • • oblivioncth  

      4
      0
      Votes
      4
      Posts
      4159
      Views

      @Wieland Wow you are just killing it today for me aren't you? Haha. I'll judge which is best for me a give it a roll. Thanks a bunch (again)! EDIT: I ended up going for the event filter route and it works beautifully. Other than the exact syntax the approach also feels pretty intuitive which I like.
    • SOLVED How to handle keypress event for all child widgets, in Qt?
      General and Desktop • eventfilter keypressevent • • NIXIN  

      13
      0
      Votes
      13
      Posts
      11247
      Views

      That worked fine, thanx a lot for your help
    • SOLVED KeyPressEvent singleTime ?
      General and Desktop • event keypressevent • • Walux  

      5
      0
      Votes
      5
      Posts
      1016
      Views

      @mrjj It's alright , i figured it out ;) Huge thanks for your help :) Topic->setAsClosed(true);
    • UNSOLVED Arrows keys don’t catch in keyPressEvent()
      General and Desktop • event keys keypressevent • • IL  

      6
      0
      Votes
      6
      Posts
      8276
      Views

      i guess this issue will be solved along with your other issue.
    • SOLVED How to change keyboard's key behavior?
      General and Desktop • keyboard qmap keypressevent keyboard mappin • • Nouriemm  

      7
      0
      Votes
      7
      Posts
      2697
      Views

      Thank you all, I am going to mark this discussion as solved; However, Any more comments would be much appreciated;
    • SOLVED keyPressEvent() isn't being called
      General and Desktop • keypressevent • • AlaaM  

      5
      0
      Votes
      5
      Posts
      2344
      Views

      Well, that's the use of eventFilter. In your reimplementation, you check only for what you are interested in and when it's not just call the base class implementation.
    • Backtab, KEY_CLEAR and KEY_BACK not handled by QML
      Mobile and Embedded • qml keys keypressevent qml keyboard ev • • carloval  

      1
      0
      Votes
      1
      Posts
      705
      Views

      No one has replied

    • Weird behaviour of QLineEdit
      Mobile and Embedded • qlineedit keypressevent mousepressevent • • Sidii  

      1
      0
      Votes
      1
      Posts
      401
      Views

      No one has replied