Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    GrabWidget - QLineEdit including input cursor

    General and Desktop
    2
    2
    1393
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      walteste last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • M
        msx_br last edited by

        Maybe void QWidget::setEditFocus ( bool enable ) ?

        msx_br - Brazil (Netherlands)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post