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. [SOLVED] How do i know if the focus is changed from QTextEdit?..like in QLineEdit

[SOLVED] How do i know if the focus is changed from QTextEdit?..like in QLineEdit

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 7.8k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    M_31
    wrote on last edited by
    #1

    Hi All,
    I want to trigger some event if the focus on my QTextEdit has changed..
    and i achived for QlineEdit..but not for QTextEdit..

    @
    connect( ui->lineEdit, SIGNAL(lostFocus()), this , SLOT(lineEditFocusChanged()));
    // connect( ui->textEdit, SIGNAL(lostFocus), this, SLOT(textEditFocusChanged()))
    @

    Please let me know if anyother way to achive my task???

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      look to "QWidget::focusOutEvent":http://doc.qt.nokia.com/4.7/qwidget.html#focusOutEvent

      --
      Vasiliy

      1 Reply Last reply
      0
      • M Offline
        M Offline
        M_31
        wrote on last edited by
        #3

        Thanks Vass ...its working fine..

        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