[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): de

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 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 example: > >

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 > 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 menubar. How

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 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 wrote: > On Thu, 26 Fe

[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 lis

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] QTextEdit, QTextCursor: make 0-len QTextBlocks invisible, custom visible cursor ?

2009-02-26 Thread Denis
Folks, can anyone help on these 2 problems, either in PyQt or Qt C -- 1) custom visible cursor in a QTextEdit, hilite a line or several lines; mouse click / 2click / 3click -> both the usual mac cursor hiliting, blue char / word / line AND whatever signal cursorPosChanged triggers 2) ther

[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

[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 the

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 Py

[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