Designer uses QListViewItem. I switched to KListView because there is no hope to find out what's wrong with QLineEdit. Something is filtering Ctrl+A before sequence reaches recently installed event handler. Some magic behind ;[
Designer uses QListViewItem. I switched to KListView because there is no hope to find out what's wrong with QLineEdit. Something is filtering Ctrl+A before sequence reaches recently installed event handler. Some magic behind ;[
QObject::event() probably![]()
And Ctrl+A is probably a shortcut to "Select all", so you might need to disable the shortcut.
But how disable shortcut?
event() - no.
I think event is first passed through event filter chain, then to event() and finally to specific event function:
event
|
event filter (n) -> event filter (n - 1) -> ... -> event filter (0) -> event() -> keyPressEvent(), where event filter (n) is latest installed event filter
I cannot catch this sequence at event filter (n) level so it's obvious I won't catch it at event() level.
Bookmarks