QPicture and Qpainter PyQt4

2007-09-17 Thread David Boddie
On Mon Sep 17 09:29:43 CEST 2007, luca72 wrote: > class PictureFrame(QtGui.QFrame): > > def __init__(self, parent = None): > QFrame.__init__(self, parent) > picture = QtGui.QPicture() > > def paintEvent(self, event): > picture.load('dis.pic') > gr = QtGui.QPainter() > gr.

Re: QPicture and Qpainter PyQt4

2007-09-17 Thread BlueBird
Hi, It looks like you have several things wrong: On Sep 17, 9:29 am, luca72 <[EMAIL PROTECTED]> wrote: > class Form(QWidget, Ui_Form): > [...] > > @pyqtSignature("") > def on_pushButton_clicked(self): > """ > Slot documentation goes here. > """ > # TOD

QPicture and Qpainter PyQt4

2007-09-17 Thread luca72
Hello at all I have made this small tests: this is the form implementation: # -*- coding: utf-8 -*- """ Module implementing Form. """ from PyQt4.QtGui import QWidget from PyQt4.QtCore import pyqtSignature from PyQt4 import * from disegni import PictureFrame from Ui_form import Ui_Form class F

Re: QPainter

2007-06-20 Thread Phil Thompson
On Wednesday 20 June 2007 4:44 pm, luca72 wrote: > Hello > using qt3 i do the follow for paint some line in a frame > > gr = QPainter(self.frame3) > gr drawLine(30,10,30,490) > and the line is draw. > > Whit qt4 : > gr = QtGui.QPainter(self.frame3) > #gr.setPen

QPainter

2007-06-20 Thread luca72
Hello using qt3 i do the follow for paint some line in a frame gr = QPainter(self.frame3) gr drawLine(30,10,30,490) and the line is draw. Whit qt4 : gr = QtGui.QPainter(self.frame3) #gr.setPen(QtGui.QPen(QtCore.Qt.black, 1, QtCore.Qt.SolidLine)) gr.drawLine(30,10,30,490) and nothing is draw