Пример #1
0
int main()
{
	openFileOutput(getFileName());
	getNumOfVehicles(file);
	printCoordinates(getCoordinates(file,3,4),3,4);
	//getCoordinates(file,3,4);
	return 0;
}
Пример #2
0
paint::paint(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::paint)
{
    ui->setupUi(this);

    scene = new paintScene();
    ui->graphicsView->setScene(scene);

    timer = new QTimer();
    connect(timer, &QTimer::timeout, this, &paint::slotTimer);
    timer->start(100);

    connect(scene, SIGNAL(mouseMoved()), this, SLOT(readCoordinates()));
    connect(ui->StartButton, SIGNAL(clicked()), this, SLOT(printCoordinates()));
    connect(ui->ClearButton, SIGNAL(clicked()), this, SLOT(clear()));
    connect(this, SIGNAL(pointReached(int, point_t *)), scene, SLOT(selectPoint(int, point_t *)));

}