HotTestWidget
0
0
520
426
HotTestWidget
-
0
Playground
-
Hotkey &1:
-
Hotkey &2:
-
false
85
255
0
255
255
255
0
0
0
85
255
0
255
255
255
0
0
0
120
120
120
0
0
0
0
0
0
true
QFrame::Panel
QFrame::Sunken
QLCDNumber::Flat
-
-
Count:
-
Qt::LeftArrow
-
false
85
255
0
255
255
255
0
0
0
85
255
0
255
255
255
0
0
0
120
120
120
0
0
0
0
0
0
true
QFrame::Panel
QFrame::Sunken
QLCDNumber::Flat
-
Hotkey &3:
-
-
Count:
-
Qt::LeftArrow
-
Hotkey &4:
-
-
false
85
255
0
255
255
255
0
0
0
85
255
0
255
255
255
0
0
0
120
120
120
0
0
0
0
0
0
true
QFrame::Panel
QFrame::Sunken
QLCDNumber::Flat
-
Count:
-
Qt::LeftArrow
-
Count:
-
-
Qt::LeftArrow
-
false
85
255
0
255
255
255
0
0
0
85
255
0
255
255
255
0
0
0
120
120
120
0
0
0
0
0
0
true
QFrame::Panel
QFrame::Sunken
QLCDNumber::Flat
-
Hotkey &5:
-
Qt::Vertical
20
41
-
Qt::Vertical
20
41
-
Count:
-
false
85
255
0
255
255
255
0
0
0
85
255
0
255
255
255
0
0
0
120
120
120
0
0
0
0
0
0
true
QFrame::Panel
QFrame::Sunken
QLCDNumber::Flat
-
Qt::LeftArrow
-
-
Qt::Vertical
20
41
-
Qt::Vertical
20
41
-
Qt::Vertical
20
41
Testings
-
<b>Testing:</b> Please press the combinations listed below to check whether they work properly or not. Everytime a shortcut is triggered, the checkbox will toggle it's value. Set the test active to begin.
true
-
Test Active:
true
false
-
Hotkey: F
-
-
Hotkey: ctrl+alt+meta+F12
-
-
Hotkey: ctrl+shift+cancel
-
-
Hotkey: meta+del
-
-
Hotkey: numlock
-
-
Hotkey: ctrl+5
-
-
Hotkey: shift+Tab
-
-
Hotkey: shift+,
-
-
Hotkey: shift+;
-
-
Hotkey: shift+alt+K
-
-
Hotkey: shift+alt+K
-
-
Qt::Vertical
20
0
Threading
12
-
<html><head/><body><p>This test was designed to try out multi-threaded shortcuts. The QHotkey class is completly <span style=" font-weight:600;">threadsafe</span>, but this test can help to see if it acutally works (It does).</p><p>If activated, <span style=" font-style:italic;">Hotkey 4 and Hotkey 5 </span>of the Playground will each run on their own thread. This means:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Mainthread:</span> Hotkey 1, 2, 3</li><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Second thread:</span> Hotkey 4</li><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Third thread:</span> Hotkey 5</li></ul><p><span style=" font-weight:600;">Note:</span> The two hotkeys will be moved to the threads. For simplicity-reasons, you can't move them back in this test (But its possible, just not done here). Restart the test to get them back.</p></body></html>
Qt::RichText
true
-
75
true
Enable Threaded Hotkeys
-
Qt::Vertical
20
40
Native Shortcut
-
<html><head/><body><p>QHotkey allows you to set native shortcuts explicitly. These, of course, only work on the platform they were choosen for. All platform use special constants for their key codes and modifiers, which makes it pretty simple to use them from code. If you want to test them out here, google for the tables.</p><p>In most cases, you will not need to specify native shortcuts directly. However, as explaind on previos tabs, some shotcuts may not be creatable from Qt's key (e.g. Numblock numbers). In that case, you can set the directly.</p><p><span style=" text-decoration: underline;">Example: Ctrl+A</span></p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Windows:</span> Key: <span style=" font-style:italic;">0x0041</span>, Modifier: <span style=" font-style:italic;">0x0002</span></li><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">X11:</span> Key: <span style=" font-style:italic;">0x0026</span>, Modifier: <span style=" font-style:italic;">0x0004</span></li><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">OsX:</span> Key: <span style=" font-style:italic;">0x0000</span>, Modifier: <span style=" font-style:italic;">0x0100</span><span style=" text-decoration: underline;"><br/></span></li></ul></body></html>
true
-
-
Key:
-
0x
999999999
16
-
Modifiers:
-
0x
999999999
16
-
Count:
-
false
85
255
0
255
255
255
0
0
0
85
255
0
255
255
255
0
0
0
120
120
120
0
0
0
0
0
0
true
QFrame::Panel
QFrame::Sunken
QLCDNumber::Flat
-
Registered:
-
hotkeyCheckbox_1
hotkeySequenceEdit_1
resetButton_1
hotkeyCheckbox_2
hotkeySequenceEdit_2
resetButton_2
hotkeyCheckbox_3
hotkeySequenceEdit_3
resetButton_3
hotkeyCheckbox_4
hotkeySequenceEdit_4
resetButton_4
hotkeyCheckbox_5
hotkeySequenceEdit_5
resetButton_5
hotkeyCheckbox_1
toggled(bool)
hotkeyCount_1
setEnabled(bool)
31
45
417
43
hotkeyCheckbox_2
toggled(bool)
hotkeyCount_2
setEnabled(bool)
31
74
417
72
hotkeyCheckbox_3
toggled(bool)
hotkeyCount_3
setEnabled(bool)
31
103
417
101
hotkeyCheckbox_4
toggled(bool)
hotkeyCount_4
setEnabled(bool)
31
132
417
130
hotkeyCheckbox_5
toggled(bool)
hotkeyCount_5
setEnabled(bool)
31
161
417
159
hotkeyCheckbox_1
toggled(bool)
hotkeySequenceEdit_1
setDisabled(bool)
31
45
109
43
hotkeyCheckbox_2
toggled(bool)
hotkeySequenceEdit_2
setDisabled(bool)
31
74
109
72
hotkeyCheckbox_3
toggled(bool)
hotkeySequenceEdit_3
setDisabled(bool)
31
103
109
101
hotkeyCheckbox_4
toggled(bool)
hotkeySequenceEdit_4
setDisabled(bool)
31
132
109
130
hotkeyCheckbox_5
toggled(bool)
hotkeySequenceEdit_5
setDisabled(bool)
31
161
109
159
registeredCheckBox
toggled(bool)
nativeCount
setEnabled(bool)
93
326
150
349
registeredCheckBox
toggled(bool)
nativeModifiersSpinBox
setDisabled(bool)
108
327
111
305
registeredCheckBox
toggled(bool)
nativeKeySpinBox
setDisabled(bool)
183
327
194
279