Hi. I got it worked with following, using signals and slots
{
const char* ab;
if(newwid != 0)
{
ab = newwid->metaObject()->className();
if(strcmp(ab,"QLineEdit")==0)
{
virtualKeyBoard->show();
}
}
else
{
virtualKeyBoard->hide();
}
}
connect(qApp, SIGNAL(focusChanged(QWidget*, QWidget*)), this, SLOT(setWidgets(QWidget*, QWidget*)));
void TME_COM::setWidgets(QWidget *old, QWidget *newwid)
{
const char* ab;
if(newwid != 0)
{
ab = newwid->metaObject()->className();
if(strcmp(ab,"QLineEdit")==0)
{
virtualKeyBoard->show();
}
}
else
{
virtualKeyBoard->hide();
}
}
To copy to clipboard, switch view to plain text mode
Thanks for your replies.
I've got one more issue.
The screens in our project resizes when double clicked on title bar. I want to disable this resize option.
so the questions are,
1. How to disable the resize of the screens or widget on double click of the title bar?
2. How to disable the context menu display, when right clciked on title bar?
Bookmarks