// OverviewPanel.cpp: Implementierung der Klasse COverviewPanel. // ////////////////////////////////////////////////////////////////////// #include "OverviewPanel.h" #include #include ////////////////////////////////////////////////////////////////////// // Konstruktion/Destruktion ////////////////////////////////////////////////////////////////////// COverviewPanel::COverviewPanel(QWidget *parent, const char *name) { // parent is a QWidget child of a QTabWidget bool is = isShown(); // always false in constructor } void COverviewPanel::paintEvent(QPaintEvent * ) { QPainter paint( this ); paint.setPen( Qt::blue ); QRect r = this->rect(); // This rect has arbitrary dimensions and has no relation to the size // given in QDesigner paint.drawText( r, AlignCenter, "The Text" ); } QSizePolicy COverviewPanel::sizePolicy() const { return QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); }