I have a QWidget which contains some Line Edits. I have to pop up a new Numpad widget when the Line edit gets the the focus. When i click on the Numpad widget, the focus has to be remained in the Line edit widget. So i tried using
bool NumPadWidget::nativeEvent(const QByteArray &eventType, void *message, long *result)
{
#ifdef Q_OS_WIN
if(eventType == "windows_generic_MSG")
{
const MSG *msg = reinterpret_cast<MSG *>(message);
if(msg->message == WM_MOUSEACTIVATE)
{
*result = MA_NOACTIVATE;
return true;
}
}
#endif
return false;
}
This is working fine for Mouse clicks of the numpad widget, but i am using a Touch screen. when i touch the Numpad widget, there is a flickering ( title bar flashing effect) on the LineEdit widget. So can anyone please tell me which Macro i have to use to block the focus of the widget on the touch screen.
I tried using WM_Touch macro which results in no proper output. Please help…