I need to get the status of Caps-lock on or off in QT framework using c++ RRS feed

  • Question

  • Its a wrong question to post here
    • Moved by Baron Bi Thursday, December 14, 2017 7:38 AM Third party library issue
    • Edited by Mike xing Monday, December 18, 2017 9:22 AM
    Saturday, December 9, 2017 8:06 AM

All replies

  • If you did not find anything special in QT (asking in corresponding forums as well), then try a solution for Windows:

    #include <Windows.h>

    . . .
    bool is_caps_lock = ( ::GetKeyState( VK_CAPITAL ) & 1 ) != 0;

    Saturday, December 9, 2017 9:30 AM

  • BOOL bStatus = GetKeyState(VK_CAPITAL) & 0x0001;

    Saturday, December 9, 2017 9:32 AM
  • Hi,

    Thanks for your reply...

    I don't want to do it in windows, i wanted to do it in Ubuntu(Linux) platform using QT framework.



    Saturday, December 9, 2017 9:45 AM
  • Hi Mike,

    thanks for posting here.

    This forum is about c++ development with Microsoft products. For your case which is more related to QT library, I suggest you post on this page below.


    Your understanding and cooperation will be grateful.

    Best Regards,

    Baron Bi

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, December 11, 2017 1:21 AM