Menu

Key capture

Anonymous
2021-02-02
2021-02-02
  • Anonymous

    Anonymous - 2021-02-02

    Hi,

    I hope my question will be a little bit more interesting this time.

    Is that possible to capture qt key press event in worker script widget ?

    Basically I want to have some kind of record/restore history values in a lineEdit widget.

    I don't see anything like that in documentation nor worker script examples.

     
  • Stefan Zieker

    Stefan Zieker - 2021-02-02

    Hi,

    you can use the function createShortCut from your window object (there is an example in the manual).

     
  • Stefan Zieker

    Stefan Zieker - 2021-02-02

    The name of your window object is UI_name in QtDesigner.

     

    Last edit: Stefan Zieker 2021-02-02

Anonymous
Anonymous

Add attachments
Cancel