Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GrabWidget - QLineEdit including input cursor
QtWS25 Last Chance

GrabWidget - QLineEdit including input cursor

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.5k Views
  • 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 Offline
    W Offline
    walteste
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      msx_br
      wrote on last edited by
      #2

      Maybe void QWidget::setEditFocus ( bool enable ) ?

      msx_br - Brazil (Netherlands)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved