HotTestWidget
0
0
520
426
HotTestWidget
-
0
Playground
-
Hotkey &1:
-
-
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
-
Hotkey &2:
-
-
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
-
Hotkey &3:
-
-
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
-
Hotkey &4:
-
-
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
-
Hotkey &5:
-
-
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
-
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
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)
36
52
375
62
hotkeyCheckbox_2
toggled(bool)
hotkeyCount_2
setEnabled(bool)
44
82
359
82
hotkeyCheckbox_3
toggled(bool)
hotkeyCount_3
setEnabled(bool)
52
113
375
120
hotkeyCheckbox_4
toggled(bool)
hotkeyCount_4
setEnabled(bool)
58
140
375
149
hotkeyCheckbox_5
toggled(bool)
hotkeyCount_5
setEnabled(bool)
28
163
375
178
hotkeyCheckbox_1
toggled(bool)
hotkeySequenceEdit_1
setDisabled(bool)
62
50
127
52
hotkeyCheckbox_2
toggled(bool)
hotkeySequenceEdit_2
setDisabled(bool)
83
79
161
81
hotkeyCheckbox_3
toggled(bool)
hotkeySequenceEdit_3
setDisabled(bool)
75
106
116
109
hotkeyCheckbox_4
toggled(bool)
hotkeySequenceEdit_4
setDisabled(bool)
69
135
117
141
hotkeyCheckbox_5
toggled(bool)
hotkeySequenceEdit_5
setDisabled(bool)
81
168
145
164