Navigation

    Qt Forum

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

    • SOLVED How to get ALL the keyboard pressed keys WITHOUT RESTRICTION OR FILTER?
      QML and Qt Quick • window keyboard filter key • • jeanmilost  

      3
      0
      Votes
      3
      Posts
      36
      Views

      @J-Hilk said in How to get ALL the keyboard pressed keys WITHOUT RESTRICTION OR FILTER?: Inside main.cpp install an eventfilter on the Q(GUI)Application Thank you very much, this was exactly what I needed!
    • UNSOLVED Dealing with keyboard layouts for input on multiple platforms
      Game Development • cross platform key key event keyboard mappin • • NeatNit  

      10
      0
      Votes
      10
      Posts
      2068
      Views

      Well, it's not something that's provided by Qt out of the box, so you'll have to check the platforms you want to support for how they provide that information. You could even consider contributing that to Qt to improve it for everybody. You might also open a feature request on the bug report system for that.
    • Send arrow keys via QProcess in any platform
      General and Desktop • linux qprocess windows 7 key arrowkeys • • Mark81  

      11
      0
      Votes
      11
      Posts
      4308
      Views

      @VRonin said in Send arrow keys via QProcess in any platform: @Mark81 Then do you really need Qt? there are already mature tools to do those kind of things, for windows: http://ahkscript.org/ and for linux: http://www.semicomplete.com/projects/xdotool/ I don't need Qt for this. But I have a quite large application that does a lot of things. One of those, is to launch external applications and send them keystrokes as you would type in front of a keyboard.
    • UNSOLVED Could you explain me the QKeyEvent::nativeModifiers() and key() methods ?
      General and Desktop • qkeyevent key nativemodifiers • • Folco  

      1
      0
      Votes
      1
      Posts
      574
      Views

      No one has replied

    • SOLVED QWebView Disable Backspace Key (But Not on HTML Fields)
      General and Desktop • event qwebview key disable backspace • • maximo  

      2
      0
      Votes
      2
      Posts
      1248
      Views

      Here's the solution. You have to do it in Javascript. Ensure jQuery is loaded in your web pages (even the IFRAME/FRAME ones) and then apply this code: <script type="text/javascript"> $(document).ready(function(){ // Disable backspace key except in fields. $(document).keydown(function(e) { var elid = $(document.activeElement).is('INPUT, TEXTAREA') ; if (e.keyCode === 8 && !elid) { if(e.ctrlKey) { window.history.back(); } else { // disable backspace e.preventDefault(); return false; } } }); }); </script> SOURCE: http://stackoverflow.com/a/17278620/105539
    • Hotkey to auto format code?
      General and Desktop • settings keys key format hotkey auto autoformat hot indent autoindent ctrl • • Rample  

      4
      0
      Votes
      4
      Posts
      13713
      Views

      So you already tested the Edit->Advanced possibilities ?