Interactive Mandelbrot viewer with Qt and OpenGL.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
637 B

#include <QVBoxLayout>
#include <QSlider>
#include <iostream>
#include "../headers/MainWindow.h"
3 years ago
MainWindow::MainWindow() {
buildUI();
}
void MainWindow::buildUI() {
3 years ago
resize(700, 700);
auto sizeSlider = new QSlider(Qt::Horizontal);
sizeSlider->setRange(100, 800);
3 years ago
QSlider::connect(sizeSlider, &QSlider::valueChanged, this, &MainWindow::sizeSliderChanged);
sizeSlider->setValue(500);
auto controls = new QGridLayout;
controls->addWidget(sizeSlider);
3 years ago
auto lyt = new QVBoxLayout(this);
lyt->addWidget(outputWidget);
lyt->addLayout(controls);
}
3 years ago
//TODO Handle size change
void MainWindow::sizeSliderChanged(int newValue) {
}