Important: Please read the Qt Code of Conduct -

GrabWidget - QLineEdit including input cursor

  • Hi,

    Currently i am using the grabWidget function to capture a QLineEdit. Everything works just fine.

    The only thing i miss is that i want the blinking input cursor also to be captured. This is not possible because the QLineEdit does not belong to the active Window. Is there any way that i can force the state to be like in an active window?

    At the end i would like to receive images including the blinking cursor.

  • Maybe void QWidget::setEditFocus ( bool enable ) ?

Log in to reply