HotTestWidget 0 0 520 425 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>Use this test to determine whether shortcuts on multiple threads are supported or not. Internally, the backend of the QHotkey class is <span style=" font-weight:600;">threadsafe</span>, and thus QHotkey is reentrant and can be used on any thread. However, some operating systems might not support creating hotkeys from different threads. </p><p>To enable threading, check the box below and return to the playground. <span style=" font-style:italic;">Hotkey 4 and 5</span> will now each run on their own thread. </p></body></html> Qt::RichText true 75 true Enable Threaded Hotkeys <html><head/><body><p><span style=" font-weight:600;">Results so far:</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:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Windows:</span> Registering on multiple threads is possible, but: The thread that registered must unregister too and events will be send to the thread registered from, not the main thread</li></ul></body></html> Qt::RichText true 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