qkeyevent Questions

4

Solved

I have an app (not related to any game where the W/A/S/D keys may have special meanings for navigation) where there is a QFrame. I overrode the keyPressEvent() to get the text being typed through k...
Picasso asked 24/7, 2015 at 18:15

3

Solved

I've disabled X button in Qt from my dialog using this line: myDialog->setWindowFlags(Qt::Dialog | Qt::Desktop) but I couldn't detect Alt + F4 using this code: void myClass::keyPressEvent(Q...
Radionuclide asked 29/4, 2012 at 5:2

3

Solved

void LoginModle::keyPressEvent(QKeyEvent *event) { qDebug() << event->key() << "\t" << Qt::Key_Enter << "\t" << QKeyEvent::Enter; if( event->key() == Qt::Key_E...
Cockroach asked 3/9, 2014 at 5:55

1

Solved

I am learning to process keypress and keyrelease events in Qt (C++). I have a class Keyboard with which I want to process all of these events. It inherits QObject. It doesn't need to process any mo...
Bunkhouse asked 23/8, 2014 at 23:1

3

Solved

I want to append chars to QLineEdit by sending KeyEvent. I'm using code like this: ui.myEdit->setFocus(); for(size_t i = 0; i < 10; ++i) { QKeyEvent keyPressed(QKeyEvent::KeyPress, 'a', Qt:...
Formulaic asked 20/6, 2014 at 7:59

2

Solved

Is there an easy way of getting the name of a key (so something like "uparrow" from a key event instead of just getting the key code "16777235")? Do I have to make a list of key names myself?
Tum asked 13/2, 2014 at 19:49

1

I am using QKeyEvent to get the Shift+numeric key, but it return me the ascii for "!" instead of "1" so my problem is, is there any method or techniques to get the actual numeric value's ascii inst...
Amphimixis asked 27/11, 2012 at 8:10

2

Solved

I am working on a program which communicates with a windows native program, so it needs the actucal native virtual key code. How to convert from a Windows native virtual key code to Qt::Key?
Saxena asked 20/9, 2011 at 8:29

2

I need to simulate Enter key event in Qt. How can I do this?
Richers asked 9/1, 2010 at 23:4
1

© 2022 - 2024 — McMap. All rights reserved.