Hi All,

I have developed a QT GUI which uses IGSTK ,ITK AND VTK classes functionality.
Qt Code:
  1. //ScribbleArea.h is as shown below
  2.  
  3. class ScribbleArea : public igstk::QTWidget
  4. {
  5. Q_OBJECT
  6.  
  7. public:
  8. ScribbleArea(QWidget *parent = 0,Qt::WFlags flags = 0);
  9. bool openImage(const QString &fileName);
  10. bool saveImage(const QString &fileName, const char *fileFormat);
  11. void setPenColor(const QColor &newColor);
  12. void setPenWidth(int newWidth);
  13.  
  14. bool isModified() const { return modified; }
  15. QColor penColor() const { return myPenColor; }
  16. int penWidth() const { return myPenWidth; }
  17. void DrawEllipse();
  18.  
  19.  
  20. public slots:
  21. void clearImage();
  22. void print();
  23.  
  24. protected:
  25. void mousePressEvent(QMouseEvent *event);
  26. void mouseMoveEvent(QMouseEvent *event);
  27. void mouseReleaseEvent(QMouseEvent *event);
  28. void paintEvent(QPaintEvent *event);
  29. private:
  30. void drawLineTo(const QPoint &endPoint);
  31. bool modified;
  32. bool scribbling;
  33. int myPenWidth;
  34. QColor myPenColor;
  35. QImage image;
  36. QPoint lastPoint;
  37.  
  38. };
  39. //part of ScribbleArea.cpp is as shown below
  40. ScribbleArea::ScribbleArea(QWidget *parent,Qt::WFlags flags):igstk::QTWidget(parent,flags)
  41. {
  42. setAttribute(Qt::WA_StaticContents);
  43. modified = false;
  44. scribbling = false;
  45. myPenWidth = 3;
  46. myPenColor = Qt::blue;
  47. }
  48. void ScribbleArea::paintEvent(QPaintEvent *event)
  49. {
  50. QPainter painter(this);
  51. painter.setRenderHint(QPainter::Antialiasing, true);
  52. painter.setPen(QPen(Qt::red, 12, Qt::DashDotLine, Qt::RoundCap));
  53. painter.setBrush(QBrush(Qt::green, Qt::SolidPattern));
  54. painter.drawEllipse(80, 80, 200, 200);
  55. }
  56. //In the constructor of the QMainWindow derived class (i.e in QFIRST.CPP)i have the below code:
  57.  
  58. ScribbleArea* AxialWidget;
  59. m_AxialWidget = new ScribbleArea(ui.groupBox_4);
  60.  
  61. typedef igstk::View2D View2DType;
  62. View2DType::Pointer m_view2DAxial;
  63.  
  64. m_AxialWidget->RequestSetView(m_view2DAxial);
To copy to clipboard, switch view to plain text mode 

The problem is that i am not able to see the ellipse inside the m_AxialWidget when i run the application.
PLease help me in this, i am a newbie in QT,IGSTK,VTK and ITK.

thanks,
ashwath