i have QSplitter and 2 QTextEdit's in it
i need to know which TextEdit is current now (textEdit, where cursor is visible)
how i can do it?
Printable View
i have QSplitter and 2 QTextEdit's in it
i need to know which TextEdit is current now (textEdit, where cursor is visible)
how i can do it?
use QWidget::hasFocus() to find which one is active.
QApplication::activeWindow() is fine too, and you don't have to try each widget for focus this way :)
thanx all - now it work