Results 1 to 7 of 7

Thread: How to find where the cursor is blinking in ui design

  1. #1
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    53
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How to find where the cursor is blinking in ui design

    Hi all,

    I have designed a sample program of 3 QLineedit and 2 QPushbutton.When i clicked one QPushbutton , how to find in which QLineedit the cursor is blinking. Kindly help me if any one knows

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to find where the cursor is blinking in ui design

    Hi,

    Take the child list of your ui and then search wich one have the focus.
    Òscar Llarch i Galán

  3. #3
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    53
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to find where the cursor is blinking in ui design

    Hi,

    I'm designed 3QLineEdit and 2QPushButton in QWidget class how can i find where the cursor position or where the cursor is blinking on the screen

  4. #4
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to find where the cursor is blinking in ui design

    Have you readed my answer? You can query the widgets if have the focus.
    Òscar Llarch i Galán

  5. #5
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    53
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to find where the cursor is blinking in ui design

    Hi,

    I'm not clear what you are trying to say, can you explain clearly

  6. #6
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to find where the cursor is blinking in ui design

    Òscar Llarch i Galán

  7. #7
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    53
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to find where the cursor is blinking in ui design

    Hi,
    Thanks for sending the link, i have seen the properties of QWidget class but i'm not get current cursor position on the screen

    Thanks in advance..

Similar Threads

  1. Replies: 2
    Last Post: 10th May 2013, 06:20
  2. Replies: 0
    Last Post: 29th October 2012, 11:23
  3. Replies: 2
    Last Post: 2nd October 2009, 15:32
  4. Replies: 3
    Last Post: 5th October 2008, 23:41
  5. Blinking QGraphicsItem
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 1st September 2007, 01:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.