void display () { drawAttractor (); if (dset.displayInfo) { drawInfo (); } glutSwapBuffers (); }
strangewidget::strangewidget(QWidget *parent) : QWidget(parent) { // inits QBoxLayout *layout = new QBoxLayout(QBoxLayout::LeftToRight); mainLabel = new QLabel(this); layout->addWidget(mainLabel); this->setLayout(layout); // extra ui settings this->connect(&mainThread,SIGNAL(sceneReady()),SLOT(drawAttractor())); }