QT_BEGIN_NAMESPACE
class Ui_Fractals
{
public:
{
if (Fractals->objectName().isEmpty())
Fractals
->setObjectName
(QString::fromUtf8("Fractals"));
Fractals->resize(605, 408);
layoutWidget
= new QWidget(Fractals
);
layoutWidget
->setObjectName
(QString::fromUtf8("layoutWidget"));
layoutWidget
->setGeometry
(QRect(10,
10,
579,
382));
horizontalLayout_4
->setObjectName
(QString::fromUtf8("horizontalLayout_4"));
horizontalLayout_4->setContentsMargins(0, 0, 0, 0);
verticalLayout_2
->setObjectName
(QString::fromUtf8("verticalLayout_2"));
horizontalLayout_3
->setObjectName
(QString::fromUtf8("horizontalLayout_3"));
label_Archivo
= new QLabel(layoutWidget
);
label_Archivo
->setObjectName
(QString::fromUtf8("label_Archivo"));
horizontalLayout_3->addWidget(label_Archivo);
lineEdit
->setObjectName
(QString::fromUtf8("lineEdit"));
lineEdit->setEnabled(false);
lineEdit
->setMinimumSize
(QSize(280,
0));
lineEdit->setDragEnabled(false);
horizontalLayout_3->addWidget(lineEdit);
toolButton
->setObjectName
(QString::fromUtf8("toolButton"));
toolButton
->setMinimumSize
(QSize(25,
20));
toolButton->setCheckable(false);
toolButton->setArrowType(Qt::NoArrow);
horizontalLayout_3->addWidget(toolButton);
verticalLayout_2->addLayout(horizontalLayout_3);
areadibujo
= new QWidget(layoutWidget
);
areadibujo
->setObjectName
(QString::fromUtf8("areadibujo"));
areadibujo
->setMinimumSize
(QSize(350,
350));
areadibujo
->setMaximumSize
(QSize(500,
500));
areadibujo->setAutoFillBackground(false);
areadibujo->installEventFilter(this); ////////////////////////////here!:confused::confused:
verticalLayout_2->addWidget(areadibujo);
horizontalLayout_4->addLayout(verticalLayout_2);
verticalLayout
->setObjectName
(QString::fromUtf8("verticalLayout"));
horizontalLayout
->setObjectName
(QString::fromUtf8("horizontalLayout"));
Iterations
= new QLabel(layoutWidget
);
Iterations
->setObjectName
(QString::fromUtf8("Iterations"));
horizontalLayout->addWidget(Iterations);
spinbox_ite
= new QSpinBox(layoutWidget
);
spinbox_ite
->setObjectName
(QString::fromUtf8("spinbox_ite"));
spinbox_ite->setEnabled(true);
spinbox_ite
->setMinimumSize
(QSize(30,
0));
spinbox_ite->setMinimum(100000);
spinbox_ite->setMaximum(1000000);
spinbox_ite->setSingleStep(1000);
spinbox_ite->setValue(100000);
horizontalLayout->addWidget(spinbox_ite);
iterator_hslider
= new QSlider(layoutWidget
);
iterator_hslider
->setObjectName
(QString::fromUtf8("iterator_hslider"));
iterator_hslider->setEnabled(true);
iterator_hslider->setMouseTracking(true);
iterator_hslider->setMinimum(100000);
iterator_hslider->setMaximum(1000000);
iterator_hslider->setSingleStep(1000);
iterator_hslider->setPageStep(100000);
iterator_hslider->setValue(100000);
iterator_hslider->setTracking(true);
iterator_hslider->setOrientation(Qt::Horizontal);
horizontalLayout->addWidget(iterator_hslider);
verticalLayout->addLayout(horizontalLayout);
verticalLayout->addItem(verticalSpacer);
horizontalLayout_2
->setObjectName
(QString::fromUtf8("horizontalLayout_2"));
boton_aceptar
->setObjectName
(QString::fromUtf8("boton_aceptar"));
horizontalLayout_2->addWidget(boton_aceptar);
boton_salir
->setObjectName
(QString::fromUtf8("boton_salir"));
horizontalLayout_2->addWidget(boton_salir);
verticalLayout->addLayout(horizontalLayout_2);
horizontalLayout_4->addLayout(verticalLayout);
retranslateUi(Fractals);
QObject::connect(boton_salir,
SIGNAL(clicked
()), Fractals,
SLOT(close
()));
QObject::connect(spinbox_ite,
SIGNAL(valueChanged
(int)), iterator_hslider,
SLOT(setValue
(int)));
QObject::connect(iterator_hslider,
SIGNAL(valueChanged
(int)), spinbox_ite,
SLOT(setValue
(int)));
} // setupUi
void retranslateUi
(QWidget *Fractals
) {
Q_UNUSED(Fractals);
} // retranslateUi
};
namespace Ui {
class Fractals: public Ui_Fractals {};
} // namespace Ui
QT_END_NAMESPACE
bool areadibujo
::eventFilter(QObject *o,
QEvent *e
) //////////and here:confused::confused: {
if(o
== areadibujo
&& e
->type
() == QEvent::Paint){ painter.setPen(Qt::blue);
painter.
setFont(QFont("Arial",
30));
painter.drawText(areadibujo->rect(), Qt::AlignCenter,"Probando");
return true;
}
return Ui_Fractals::eventFilter(o,e);
}
#endif // UI_FRACTALS_H
QT_BEGIN_NAMESPACE
class Ui_Fractals
{
public:
QWidget *layoutWidget;
QHBoxLayout *horizontalLayout_4;
QVBoxLayout *verticalLayout_2;
QHBoxLayout *horizontalLayout_3;
QLabel *label_Archivo;
QLineEdit *lineEdit;
QToolButton *toolButton;
QWidget *areadibujo;
QVBoxLayout *verticalLayout;
QHBoxLayout *horizontalLayout;
QLabel *Iterations;
QSpinBox *spinbox_ite;
QSlider *iterator_hslider;
QSpacerItem *verticalSpacer;
QHBoxLayout *horizontalLayout_2;
QPushButton *boton_aceptar;
QPushButton *boton_salir;
void setupUi(QWidget *Fractals)
{
if (Fractals->objectName().isEmpty())
Fractals->setObjectName(QString::fromUtf8("Fractals"));
Fractals->resize(605, 408);
layoutWidget = new QWidget(Fractals);
layoutWidget->setObjectName(QString::fromUtf8("layoutWidget"));
layoutWidget->setGeometry(QRect(10, 10, 579, 382));
horizontalLayout_4 = new QHBoxLayout(layoutWidget);
horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4"));
horizontalLayout_4->setContentsMargins(0, 0, 0, 0);
verticalLayout_2 = new QVBoxLayout();
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
horizontalLayout_3 = new QHBoxLayout();
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
label_Archivo = new QLabel(layoutWidget);
label_Archivo->setObjectName(QString::fromUtf8("label_Archivo"));
horizontalLayout_3->addWidget(label_Archivo);
lineEdit = new QLineEdit(layoutWidget);
lineEdit->setObjectName(QString::fromUtf8("lineEdit"));
lineEdit->setEnabled(false);
lineEdit->setMinimumSize(QSize(280, 0));
lineEdit->setDragEnabled(false);
horizontalLayout_3->addWidget(lineEdit);
toolButton = new QToolButton(layoutWidget);
toolButton->setObjectName(QString::fromUtf8("toolButton"));
toolButton->setMinimumSize(QSize(25, 20));
toolButton->setCheckable(false);
toolButton->setPopupMode(QToolButton::DelayedPopup);
toolButton->setArrowType(Qt::NoArrow);
horizontalLayout_3->addWidget(toolButton);
verticalLayout_2->addLayout(horizontalLayout_3);
areadibujo = new QWidget(layoutWidget);
areadibujo->setObjectName(QString::fromUtf8("areadibujo"));
areadibujo->setMinimumSize(QSize(350, 350));
areadibujo->setMaximumSize(QSize(500, 500));
areadibujo->setAutoFillBackground(false);
areadibujo->installEventFilter(this); ////////////////////////////here!:confused::confused:
verticalLayout_2->addWidget(areadibujo);
horizontalLayout_4->addLayout(verticalLayout_2);
verticalLayout = new QVBoxLayout();
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
horizontalLayout = new QHBoxLayout();
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
Iterations = new QLabel(layoutWidget);
Iterations->setObjectName(QString::fromUtf8("Iterations"));
horizontalLayout->addWidget(Iterations);
spinbox_ite = new QSpinBox(layoutWidget);
spinbox_ite->setObjectName(QString::fromUtf8("spinbox_ite"));
spinbox_ite->setEnabled(true);
spinbox_ite->setMinimumSize(QSize(30, 0));
spinbox_ite->setMinimum(100000);
spinbox_ite->setMaximum(1000000);
spinbox_ite->setSingleStep(1000);
spinbox_ite->setValue(100000);
horizontalLayout->addWidget(spinbox_ite);
iterator_hslider = new QSlider(layoutWidget);
iterator_hslider->setObjectName(QString::fromUtf8("iterator_hslider"));
iterator_hslider->setEnabled(true);
iterator_hslider->setMouseTracking(true);
iterator_hslider->setMinimum(100000);
iterator_hslider->setMaximum(1000000);
iterator_hslider->setSingleStep(1000);
iterator_hslider->setPageStep(100000);
iterator_hslider->setValue(100000);
iterator_hslider->setTracking(true);
iterator_hslider->setOrientation(Qt::Horizontal);
horizontalLayout->addWidget(iterator_hslider);
verticalLayout->addLayout(horizontalLayout);
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout->addItem(verticalSpacer);
horizontalLayout_2 = new QHBoxLayout();
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
boton_aceptar = new QPushButton(layoutWidget);
boton_aceptar->setObjectName(QString::fromUtf8("boton_aceptar"));
horizontalLayout_2->addWidget(boton_aceptar);
boton_salir = new QPushButton(layoutWidget);
boton_salir->setObjectName(QString::fromUtf8("boton_salir"));
horizontalLayout_2->addWidget(boton_salir);
verticalLayout->addLayout(horizontalLayout_2);
horizontalLayout_4->addLayout(verticalLayout);
retranslateUi(Fractals);
QObject::connect(boton_salir, SIGNAL(clicked()), Fractals, SLOT(close()));
QObject::connect(spinbox_ite, SIGNAL(valueChanged(int)), iterator_hslider, SLOT(setValue(int)));
QObject::connect(iterator_hslider, SIGNAL(valueChanged(int)), spinbox_ite, SLOT(setValue(int)));
QMetaObject::connectSlotsByName(Fractals);
} // setupUi
void retranslateUi(QWidget *Fractals)
{
Fractals->setWindowTitle(QApplication::translate("Fractals", "Fractals", 0, QApplication::UnicodeUTF8));
label_Archivo->setText(QApplication::translate("Fractals", "Archivo:", 0, QApplication::UnicodeUTF8));
toolButton->setText(QApplication::translate("Fractals", "...", 0, QApplication::UnicodeUTF8));
Iterations->setText(QApplication::translate("Fractals", "Iterations", 0, QApplication::UnicodeUTF8));
boton_aceptar->setText(QApplication::translate("Fractals", "&Aceptar", 0, QApplication::UnicodeUTF8));
boton_salir->setText(QApplication::translate("Fractals", "&Salir", 0, QApplication::UnicodeUTF8));
Q_UNUSED(Fractals);
} // retranslateUi
};
namespace Ui {
class Fractals: public Ui_Fractals {};
} // namespace Ui
QT_END_NAMESPACE
bool areadibujo::eventFilter(QObject *o, QEvent *e) //////////and here:confused::confused:
{
if(o == areadibujo && e->type() == QEvent::Paint){
QPainter painter(areadibujo);
painter.setPen(Qt::blue);
painter.setFont(QFont("Arial",30));
painter.drawText(areadibujo->rect(), Qt::AlignCenter,"Probando");
return true;
}
return Ui_Fractals::eventFilter(o,e);
}
#endif // UI_FRACTALS_H
To copy to clipboard, switch view to plain text mode
Bookmarks