Return is the big key above Shift labeled "Enter". Enter is the key on the numeric keypad.
Return is the big key above Shift labeled "Enter". Enter is the key on the numeric keypad.
Ha-ha -- very funny
i am serious
i think problem in my old OS (red hat 6)
Cut and Run
i think that problem in your keyboard
p.s. you havent understand previous answers
a life without programming is like an empty bottle![]()
Ooo real smart guy
special for u:
<-- return key
/__| enter key (bad pic but it real big key i think u can found look like )
\
so i can press need key
i still have problem and stop stupid comments
(my" return key" = 16777219 )
Last edited by Hz; 23rd March 2006 at 11:17.
Cut and Run
What is your problem?
Regardless of what reads on the buttons of your keyboard, Qt handles them the way wysota said.
So why can't you just handle both, or only Qt::Key_Return if that's what you're after..?
Qt Code:
{ if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter) { alignCurrent(); } }To copy to clipboard, switch view to plain text mode
i havn't problem to get rigth result
i just don't understand why when i press "enter key" (big key above Shift labeled "Enter")
it's not equal to Qt::Key_Enter
ps my return key delete last simbol
my enter key -- go next line
all work correctly
Last edited by Hz; 23rd March 2006 at 11:26.
Cut and Run
Because it is called RETURN! ENTER is the key on the numeric keypad. Press it and you'll see it will trigger the condition.Originally Posted by Hz
my return key delete last simbol
my enter key -- go next line
all work correctly
the key on the numeric keypad it's same key
and make same result
Cut and Run
Try the program attached. It's for Qt4 but if you use Qt3 all you have to do is to change included files and regenerate the project file. The rest should work out of the box.
thanx for program
-- i have no Enter key
2 return key on my keyboard
Cut and Run
...and they are both labeled "Enter".You might have a broken xkbd (or whatever it is called) configuration and Enter gets remapped to Return.
i find my old qt3 program
and take keyboard to another computer with qt3 -- all work --- so keyboard not broken
maybe OS configuration ... i dont know
Cut and Run
The keybord (as a device) can't be broken in this way. It is purely a software issue. As I said -- probably xkbd configuration is screwed up. You could check if the situation is the same under a text console -- it has a separate configuration. There is a tool to check the scan codes (I don't remember its name -- google for it or check the consoletools package, it should be there, I guess...).
... and becouse "Enter" is positioned near "+" and "Del"Originally Posted by Hz
a life without programming is like an empty bottle![]()
These are not stupid comments, we are serious. Try changing Qt::Key_Enter to Qt::Key_Return and see if it works. The "really big key" is Return, not Enter. In whole computer world it is known as Return, just some (probably) IBM guys labeled it "Enter" on their PC keyboards and since then PC-guys (and all their keyboards) label that key "Enter". But that doesn't change the fact that it's Return. And "<--" key is backspace![]()
sorry but i cant stop spamingOriginally Posted by Hz
![]()
![]()
![]()
a life without programming is like an empty bottle![]()
Bookmarks