[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: still cant get my paintevent!!! - More help needed.
From: Werner Trobin <wtrobin () carinthia ! com>
Date: 2000-04-29 19:40:49
[Download RAW message or body]
Dies ist eine mehrteilige Nachricht im MIME-Format.
"Jesper K. Pedersen" wrote:
>
> Daniel Schmitt <pnambic@kidata.de> writes:
>
> | Hi,
> |
> | Jesper Pedersen wrote:
Hi!
I'm wondering if that compiled for you. Unless I added a few
lines (have a look at the attached diffs) it even failed to
compile.
BTW: Now it works (you get a repaintEvent on the initial
show()).
If the compilation aborts for you because of an missing
test-widget.moc file, just create it via
'moc test-widget.h -o test-widget.moc'
Have fun,
Werner
["test-widget.cpp.diff" (text/plain)]
--- test-widget.cpp Sat Apr 29 21:19:16 2000
+++ ../koffice/KDE/qt-copy/tutorial/t1/test-widget.cpp Sat Apr 29 21:29:23 2000
@@ -14,7 +14,7 @@
QLabel *s = new QLabel(this);
s->setText("label 2");
layout->addWidget(s);
-
+
}
void MyTestClass::paintEvent(QPaintEvent *)
@@ -33,3 +33,4 @@
return myapp.exec();
}
+#include "test-widget.moc"
["test-widget.h.diff" (text/plain)]
--- test-widget.h Sat Apr 29 21:19:18 2000
+++ ../koffice/KDE/qt-copy/tutorial/t1/test-widget.h Sat Apr 29 21:30:52 2000
@@ -1,3 +1,6 @@
+#ifndef test_widget_h
+#define test_widget_h
+
#include <qwidget.h>
#include <qevent.h>
@@ -10,3 +13,4 @@
MyTestClass(QWidget *parent = 0);
void paintEvent(QPaintEvent *event);
};
+#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic