form2impl.h
/****************************************************************************
**
** Created using Edyuk 1.0.0
**
** File : form2impl.h
** Date : sam. 2. aot 16:27:03 2008
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
#ifndef _FORM2IMPL_H_
#define _FORM2IMPL_H_
#include <QDialog>
#include "ui_form2.h"
#include "mainwindowimpl.h"
class form2Impl
: public QDialog,
public Ui
::Dialog //H�itage multiple.{
Q_OBJECT
public:
/*cf doc de "Qt::WindowFlags", tr� riche... */
MainWindowImpl *win;
form2Impl
( QWidget * parent
= 0, Qt
::WFlags f
= 0 );
/*Fen�re Standard*/ //MainWindowImpl( QWidget * parent = 0, Qt::WFlags f = Qt::FramelessWindowHint );/*fen�re sans cadre.*/
/**Do not create object of same class**/
// form2Impl* pointr22;
private slots:
void funct3();
private :
};
#endif // !_FORM2IMPL_H_
form2.cpp
/****************************************************************************
**
** Created using Edyuk 1.0.0
**
** File : form2.cpp
** Date : sam. 2. aot 16:31:45 2008
**
**
****************************************************************************/
#include "form2impl.h"
#include "mainwindowimpl.h"
#include "ui_mainwindow.h"
form2Impl
::form2Impl ( QWidget * parent, Qt
::WFlags f
) {
win=(MainWindowImpl *)parent;
setupUi(this);
connect(pB_1, SIGNAL(clicked()), this, SLOT(funct3()));
connect(pB_Close, SIGNAL(clicked()), this, SLOT(close()));
}
void form2Impl::funct3()
{
win->lbl_1->setText("abcd");
/* cr� un pointeur sur classe :*/
// MainWindowImpl pt;
// MainWindowImpl *pointr=&pt;
//MainWindowImpl *pointr= new MainWindowImpl (this);
//pt.lbl_1->setText("abcd");
//pointr->lbl_1->setText("abcd");
//pointr->lbl_1->repaint();
//label1->setText("ABRACADABRA !");
//QString strg = MainWindowImpl::pointr4->lbl_1->text();
//label1->setText(strg);
//pointr= pointr4;
//pt.lbl_1->setText("abcd");
/* MainWindowImpl::aa->lbl_1->setText("abcd");*/
//Ui::MainWindow *aa; //plante car impl�entation parall�e
//aa->lbl_1->setText("a4cd");
//MainWindowImpl::ui.lbl_1->setText("AK47");
//MainWindowImpl::
// Ui::MainWindow pt; //On ne r�up�e que la partie widget de l'h�itage multiple de la classe MainWindowImpl
// Ui::MainWindow* pointeur=&pt ;
// pointeur->lbl_1->setText("abcd");
//pt.lbl_1->repaint();
//pointeur->pB_Close->setText("abcd");
//st = pointeur->lbl_1->text();
// st = pt.lbl_1->text();
//pB_Close->setText(st);
}
form2impl.h
/****************************************************************************
**
** Created using Edyuk 1.0.0
**
** File : form2impl.h
** Date : sam. 2. aot 16:27:03 2008
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
#ifndef _FORM2IMPL_H_
#define _FORM2IMPL_H_
#include <QDialog>
#include "ui_form2.h"
#include "mainwindowimpl.h"
class form2Impl : public QDialog, public Ui::Dialog //H�itage multiple.
{
Q_OBJECT
public:
/*cf doc de "Qt::WindowFlags", tr� riche... */
MainWindowImpl *win;
form2Impl( QWidget * parent = 0, Qt::WFlags f = 0 );/*Fen�re Standard*/
//MainWindowImpl( QWidget * parent = 0, Qt::WFlags f = Qt::FramelessWindowHint );/*fen�re sans cadre.*/
/**Do not create object of same class**/
// form2Impl* pointr22;
private slots:
void funct3();
private :
};
#endif // !_FORM2IMPL_H_
form2.cpp
/****************************************************************************
**
** Created using Edyuk 1.0.0
**
** File : form2.cpp
** Date : sam. 2. aot 16:31:45 2008
**
**
****************************************************************************/
#include "form2impl.h"
#include "mainwindowimpl.h"
#include "ui_mainwindow.h"
form2Impl::form2Impl ( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f)//
{
win=(MainWindowImpl *)parent;
setupUi(this);
connect(pB_1, SIGNAL(clicked()), this, SLOT(funct3()));
connect(pB_Close, SIGNAL(clicked()), this, SLOT(close()));
}
void form2Impl::funct3()
{
QApplication::beep();
win->lbl_1->setText("abcd");
/* cr� un pointeur sur classe :*/
// MainWindowImpl pt;
// MainWindowImpl *pointr=&pt;
//MainWindowImpl *pointr= new MainWindowImpl (this);
//pt.lbl_1->setText("abcd");
//pointr->lbl_1->setText("abcd");
//pointr->lbl_1->repaint();
//label1->setText("ABRACADABRA !");
//QString strg = MainWindowImpl::pointr4->lbl_1->text();
//label1->setText(strg);
//pointr= pointr4;
//pt.lbl_1->setText("abcd");
/* MainWindowImpl::aa->lbl_1->setText("abcd");*/
//Ui::MainWindow *aa; //plante car impl�entation parall�e
//aa->lbl_1->setText("a4cd");
//MainWindowImpl::ui.lbl_1->setText("AK47");
//MainWindowImpl::
// Ui::MainWindow pt; //On ne r�up�e que la partie widget de l'h�itage multiple de la classe MainWindowImpl
// Ui::MainWindow* pointeur=&pt ;
// pointeur->lbl_1->setText("abcd");
//pt.lbl_1->repaint();
//pointeur->pB_Close->setText("abcd");
//st = pointeur->lbl_1->text();
// st = pt.lbl_1->text();
//pB_Close->setText(st);
}
To copy to clipboard, switch view to plain text mode
Bookmarks