hi,
i have QGLwidget inside the mainwindow. for mouseMoveEvent( )in GLwidget i would like to dispaly my object coordinates in statusbar of Mainwindow().
but inside mouseMoveEvent() of QGLwidget() we can't access statusbar() of mainwindow. so inside mouseMoveEvent() i call one function which is declared in class which is derived from mainwindow.this function is successfully receving values correctly. but it not showing .
could anyone help me what is the reason. here i am sending snap shot
Code:
GLWidget:public QGLidget; window:public QMainwindow()
Code:
{ ------------ ------------ longitude=wx; latitude=wy; window->Display(longitude,latitude); }
Code:
bool Window::Display(double a,double b) { double longitude=a; double latitude=b; statusBar()->setLayoutDirection(Qt::RightToLeft); statusBar()->showMessage(str); //QMessageBox::information(this, "Test",str); return true; }