Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)
Paste
Pasted as C++ by registered user adam ( 13 years ago )
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
QImage obraz;
void paintEvent(QPaintEvent*);
void mouseMoveEvent(QMouseEvent* event);
void mousePressEvent(QMouseEvent* event);
};
// ...
void
MainWindow::paintEvent(QPaintEvent *)
{
QPainter painter(this);
painter.drawImage(0, 0, tymczasowy);
}
void
MainWindow::mouseMoveEvent(QMouseEvent* event)
{
// rysowanie na tablicy
repaint();
}
Revise this Paste