Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
void MainWindow::addlayer()
{
renderArea->addLayer();
}
void MainWindow::setLayer()
{
bool ok;
int index = QInputDialog::getInt(this,tr(" Rendering: "),tr("Select Layer:"),0,1,renderArea->layerNumber(),1,&ok);
if(ok) {
renderArea->setLayer(index);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment