sorry but I don't get it:
botoiak.h
#ifndef BOTOIAK_H
#define BOTOIAK_H
#include <QtGui/QWidget>
{
Q_OBJECT
public:
private slots:
void blocked();
private:
};
#endif
#ifndef BOTOIAK_H
#define BOTOIAK_H
#include <QtGui/QWidget>
class botoiak : public QWidget
{
Q_OBJECT
public:
botoiak(QWidget *parent = 0);
private slots:
void blocked();
private:
QPushButton *Button7;
};
#endif
To copy to clipboard, switch view to plain text mode
botoiak.cpp
#include <QtGui>
#include <QPushButton>
#include <QPixmap>
#include <QIcon>
#include <QApplication>
#include "botoiak.h"
{
connect(deshabilitar, SIGNAL(clicked()),this, SLOT(blocked()));
void botoiak:: blocked( )
{
Button7->setDisabled(true);
}
// setWindowTitle(tr("Botoiak"));
//resize(400,400);
}
#include <QtGui>
#include <QPushButton>
#include <QPixmap>
#include <QIcon>
#include <QApplication>
#include "botoiak.h"
botoiak::botoiak(QWidget *parent)
: QWidget(parent)
{
QPushButton *habilitar = new QPushButton(tr("habilitar"), this);
QPushButton *deshabilitar = new QPushButton(tr("deshabilitar"), this);
connect(deshabilitar, SIGNAL(clicked()),this, SLOT(blocked()));
Button7= new QPushButton(tr("Button7"), this);
void botoiak:: blocked( )
{
Button7->setDisabled(true);
}
// setWindowTitle(tr("Botoiak"));
//resize(400,400);
}
To copy to clipboard, switch view to plain text mode
Bookmarks