I got It.. This is the Way.. Code: my $title = $mw->title; my $width = $mw->width; my $height = $mw->height; Note $mw is object of MainWindow. Thanks.