[PyQt] creating a QgraphicsView in MainWindow

2009-02-26 Thread Mads Kofod Hansen
Hi all My question is if it is possible to create a QGraphicsView in a MainWindow? I have a QMainWindow with a menu bar and I want to create a QGraphicsView below the menu bar. I have made a simple example: import sys from PyQt4 import QtGui, QtCore class MainWindow(QtGui.QMainWindow):

Re: [PyQt] creating a QgraphicsView in MainWindow

2009-02-26 Thread Phil Thompson
On Thu, 26 Feb 2009 02:16:41 -0800 (PST), Mads Kofod Hansen kofo...@yahoo.com wrote: Hi all My question is if it is possible to create a QGraphicsView in a MainWindow? I have a QMainWindow with a menu bar and I want to create a QGraphicsView below the menu bar. I have made a simple

Re: [PyQt] creating a QgraphicsView in MainWindow

2009-02-26 Thread Arnold Krille
Hi, On Thursday 26 February 2009 11:25:25 Phil Thompson wrote: On Thu, 26 Feb 2009 02:16:41 -0800 (PST), Mads Kofod Hansen kofo...@yahoo.com wrote: I have a QMainWindow with a menu bar and I want to create a QGraphicsView below the menu bar. But this only displays the MainWindow with a

Re: [PyQt] creating a QgraphicsView in MainWindow

2009-02-26 Thread Mads Kofod Hansen
Thank you both, it works now. - Original Message From: Arnold Krille arn...@arnoldarts.de To: pyqt@riverbankcomputing.com Sent: Thursday, February 26, 2009 11:40:53 AM Subject: Re: [PyQt] creating a QgraphicsView in MainWindow Hi, On Thursday 26 February 2009 11:25:25 Phil Thompson

[PyQt] List of childrens in QDialog by name?

2009-02-26 Thread Sergio Daniel Gomez
How can I access to children's attibutes of a QDialog? dlgBuscar = QtGui.QDialog() dlgGui = Ui_Dialog() # Made with QtDesigner and pyuic4 dlgGui.setupUi(dlgBuscar) if dlgBuscar.exec_() == QtGui.QDialog.Accepted: for child in dlgBuscar.children(): print child # Return the a object

Re: [PyQt] List of childrens in QDialog by name?

2009-02-26 Thread Sergio Daniel Gomez
Sergio Daniel Gomez escribió: How can I access to children's attibutes of a QDialog? dlgBuscar = QtGui.QDialog() dlgGui = Ui_Dialog() # Made with QtDesigner and pyuic4 dlgGui.setupUi(dlgBuscar) if dlgBuscar.exec_() == QtGui.QDialog.Accepted: for child in dlgBuscar.children(): print

[PyQt] pdf print

2009-02-26 Thread Nahuel Defossé
Hi I've created pdf output in a StringIO file which I'd like to print in my PyQt4 app. Should I save it and send it to the system default reader? or could I automate this task? Is it possible to pirnt the file directly from PyQt? Thanks Nahuel ___

[PyQt] QString mutable, unicode string immutable

2009-02-26 Thread Wolfgang Rohdewald
Hi, I just found out the hard way what the subject says Now I am curious: The PyQt roadmap says that non-pythonic classes like QString will be removed. So the result of some Qt/KDE methods will no longer return a mutable result but an immutable result. Could this not break code that relies on

Re: [PyQt] pdf print

2009-02-26 Thread Jim Bublitz
On Thursday 26 February 2009 13:41:41 pm Nahuel Defossé wrote: Hi I've created pdf output in a StringIO file which I'd like to print in my PyQt4 app. Should I save it and send it to the system default reader? or could I automate this task? Is it possible to pirnt the file directly from PyQt?

[PyQt] QPixmap and fromMacCGImageRef

2009-02-26 Thread Donald Atkins
I noticed that the fromMacCGImageRef method (mac only) for QPixmap is not available in PyQt. It looks like fromWinHBITMAP is looking through the .sip files. Is this method easy to add? I'm combining some pyobc calls to qucktime and was trying to use fromMacCGImageRef to pass pyqt an movie