Re: [PyQt] Convert string to QString

2012-09-02 Thread Python.py
I'm trying to play a video. But for that I need to choose the video. For this, if I use QtGui.QFileDialog.getOpenFileName () I can select a video and executar.O my problem is that I do not want to use the QtGui.QFileDialog.getOpenFileName (), I already researching where the video using the code. Ma

Re: [PyQt] Convert string to QString

2012-09-02 Thread Python.py
Thanks for the help, but it did not work what I wanted to do. What I want to do is play a video, but it must find the path of the video. I'm not trying to use : movie = QtGui.QFileDialog.getOpenFileName() to find the path of video and reproduzir.Usando that line above works. Instead, I'm trying

Re: [PyQt] Convert string to QString

2012-09-02 Thread Jens Thoms Toerring
On Sat, Sep 01, 2012 at 09:54:18PM -0700, Python.py wrote: > I'm trying to convert a string to QString, but I can not. Does anyone know > how I can do this converting? from PyQt4.QtCore import * a = QString( "abc" ) or from PyQt4 import Qt as qt a = qt.QString( "abc" ) or...