Changeset 561 for trunk/geant4/OpenGLQT_exemple/src/window.cpp
- Timestamp:
- Aug 14, 2007, 12:27:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/OpenGLQT_exemple/src/window.cpp
r549 r561 4 4 #include "window.h" 5 5 6 Window::Window()6 Window::Window(): QDialog(0,Qt::Dialog) 7 7 { 8 8 printf("Window::Window 1\n"); … … 22 22 23 23 QHBoxLayout *mainLayout = new QHBoxLayout; 24 24 25 mainLayout->addWidget(glWidget); 25 26 printf("Window::Window 3\n"); … … 51 52 // return slider; 52 53 // } 54 55 void Window::mousePressEvent(QMouseEvent *event) 56 { 57 printf("Window::mousePressEvent \n"); 58 } 59 60 void Window::mouseReleaseEvent(QMouseEvent *event) 61 { 62 printf("Window::mouseReleaseEvent \n"); 63 } 64 65 void Window::mouseMoveEvent(QMouseEvent *event) 66 { 67 printf("Window::mouseMoveEvent \n"); 68 // int dx = event->x() - lastPos.x(); 69 // int dy = event->y() - lastPos.y(); 70 71 // if (event->buttons() & Qt::LeftButton) { 72 // } else if (event->buttons() & Qt::RightButton) { 73 // } 74 }
Note: See TracChangeset
for help on using the changeset viewer.