#include <QPainter>
#include "mainwindow.h"
MainWindow::MainWindow( QWidget *parent ):
QMainWindow( parent )
{
setFixedSize( 200, 200 );
}
void MainWindow::paintEvent( QPaintEvent */*e*/ )
{
QPainter p( this );
p.setRenderHint( QPainter::Antialiasing, true );
p.drawEllipse( QPoint( width() / 2, height() / 2 ), 100, 100 );
p.drawLine( QPoint( width() / 2, 0 ), QPoint( 10, 145 ) );
p.drawLine( QPoint( width() / 2, 0 ), QPoint( 190, 145 ) );
p.drawLine( QPoint( 10, 145 ), QPoint( 190, 145 ) );
}