This isn' t the code .
I try to explain... I have a dialog derived from QGraphicsItem and QDialog. It has "Show" button. That button brings up another dialog and the button lable changes to "Hide".
Now i need to close the newly opened dialog to be closed by clicking "Hide" button in parent dialog. Now the problem is, when i click any where on the application the newly opened dialog goes behind - which is not what i want.
void MainDilaog::HandleShowhideButton()
{
if (m_ChannelsDlg->isVisible())
{
m_ChannelsDlg->close();
showButton.setText(tr("Show"));
}
else
{
showButton.setText(tr("Hide"));
m_ChannelsDlg->setWindowFlags(flags);
m_ChannelsDlg->show();
}
void MainDilaog::HandleShowhideButton()
{
if (m_ChannelsDlg->isVisible())
{
m_ChannelsDlg->close();
showButton.setText(tr("Show"));
}
else
{
showButton.setText(tr("Hide"));
m_ChannelsDlg->setWindowFlags(flags);
m_ChannelsDlg->show();
}
To copy to clipboard, switch view to plain text mode
MainDilaog is derived from QGraphicsItem and QDialog.
GK
Bookmarks