how should i scale the image to fit to the size of dock widget.?
i have used scaling in pixmap.
here is my code
self.edit_image=str(self.imagePath)
pic=QtGui.QPixmap(self.edit_image)
width=self.dockWidget_4.geometry().width()
height=self.dockWidget_4.geometry().he
On Tue Aug 18 09:18:33 BST 2009, vidyadhar wrote:
> how should i scale the image to fit to the size of dock widget.?
> i have used scaling in pixmap.
>
> here is my code
>
> self.edit_image=str(self.imagePath)
> pic=QtGui.QPixmap(self.edit_image)
> width=self.dockWidget_4.g
i have no idea as how to go about for devloping an application similar to
paint the one in windows. the one which has a pen tool, eraser,shapes to
draw. I would like to use the tool to highlight an area on picture.
so anyone has any idea how to use Qpainter class .
please help me with an example i
On Tue Aug 18 14:16:05 BST 2009, vidyadhar wrote:
> i have no idea as how to go about for devloping an application similar to
> paint the one in windows. the one which has a pen tool, eraser,shapes to
> draw. I would like to use the tool to highlight an area on picture.
> so anyone has any idea ho
It is relatively easy. You need a QWidget-detived widget that will collect
mouse up/down events and store pixel data. Color is set by setting a pen via a
toolbar. After that you can incorporate zoom/scaling and additional tools.
Some of the questions though are do you want it to be raster (as ab
Hi all,
I'm trying to make a fade effect as explained here:
http://doc.trolltech.com/qq/qq16-fader.html
http://labs.trolltech.com/blogs/2007/08/21/fade-effects-a-blast-from-the-past/
I have a main windows and I change the centralwidget on some user action so I
do somenthing like:
self.setCentr
Hi,
I'm new to both Python and PyQt and still learning the ropes (familiar with
C++, though). What I'm trying to do is to create a QTreeWidget where some
items are widgets (say buttons for this example's sake).
When I try this code (snippet):
cw = QTreeWidget()
The fader widget is limited. What you really want to do is create a parent
QWidget or QStackedWidget subclass and have it call render() on both widgets,
then fade with one on top of the other with the one being faded to on the
bottom (by decreasding the opacity of the top) until it is complete t
On Tue, 18 Aug 2009 08:37:55 -0700 (PDT), blue_riviera
wrote:
> Hi,
>
> I'm new to both Python and PyQt and still learning the ropes (familiar
with
> C++, though). What I'm trying to do is to create a QTreeWidget where some
> items are widgets (say buttons for this example's sake).
>
> When I tr
On Tue Aug 18 16:47:42 BST 2009, Jason H wrote:
> The fader widget is limited.
Not only that, but the last time I built it against a current version of Qt
it didn't work any more, at least not in the way I expected. :-/
> What you really want to do is create a parent
> QWidget or QStackedWidget
>> That is for a cross fade. You could always fade to empty then fade out.
> I would probably do something like that for a cross fade. The fader widget
> appears to do a different kind of fade.
The only difference is it is a fade against a solid color. You could create the
Pixmap, repsecting t
Cheers,
-Scott
__ Information from ESET NOD32 Antivirus, version of virus signature
database 4346 (20090818) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
___
PyQt mailing listPyQt@riverbankcom
On Tue, 18 Aug 2009 10:56:44 -0700, Scott Ballard
wrote:
> Hey Phil and community,
>
> I'm just wondering why the MySQL drivers can't be compiled into the PyQt
> Windows binary installer, instead we have to compile our own Qt/PyQt
> with the MySQL and/or PostGres drivers.
>
> Is it for legal r
This is a curious issueI have two Macs, both of which I've upgradef from
PyQt 4.5.1 to 4.5.4. Running my application on my MacMini was just fine
this morning. Just now, I fired up the exact same code on the MacBook Pro
for the first time after the PyQt update and the QtNetwork calls seem to
h
Hi, i've installed PyQt4 (Py2.5-gpl4.4.3-1.exe) on Windows.
That release has sql support, and i use the ODBC driver. I know it
works since i use this same release in another Windows machines.
But in this particular computer, when i run the same code that works
in the others, i get the following err
Ok, again, curious issue on my end.
It turns out these requests *were* working, just really really slowly...like
60 seconds for a simple GET. I'm inside a different network today, so I
turned off my wireless, retried this and the reqeusts to localhost performed
as expected.
BZ
On Tue, Aug 18, 2
Hi,
I'm new to PyQT ( GPL v4.4.3 for Python 2.5).
Could someone point me to a piece of code which demonstrates how I can
set-up a connection to an MS Access and a simple SELECT query, using
QtSql?
I work in a Win32 environment.
Thanks very much.
Bernard.
CONFIDENTIALITY WARNING
This e-mail me
I'm not
updating the installer for Python v2.5.
Phil
__ Information from ESET NOD32 Antivirus, version of virus signature
database 4346 (20090818) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__ Information from ESET NOD32 An
18 matches
Mail list logo