>>282
ごめん。説明が足りなかった。あるいは間違っていた。

その前に確認。
>setStatusBar(event->x(), evetn->y());
は
mainWindow->setStatusBar(event->x(), evetn->y());
の間違いだよね。