sudhansu
10th November 2010, 12:28
Hi All,
In my code I'm handing the window state change like following.
If my dialog is maximized from status bar, then i want to show it in normal size.
changeEvent(QEvent* i_ptrStatechangeEvent)
{
// Handle mximize event from task bar
if((i_ptrStatechangeEvent->type() == QEvent::WindowStateChange) &&
(this->isMaximized()))
{
showNormal();
}
}
The above code is working fine. But the style sheet I've applied is not working properly until i minimize and maximize the dialog again. Please help.
In my code I'm handing the window state change like following.
If my dialog is maximized from status bar, then i want to show it in normal size.
changeEvent(QEvent* i_ptrStatechangeEvent)
{
// Handle mximize event from task bar
if((i_ptrStatechangeEvent->type() == QEvent::WindowStateChange) &&
(this->isMaximized()))
{
showNormal();
}
}
The above code is working fine. But the style sheet I've applied is not working properly until i minimize and maximize the dialog again. Please help.