Hello,
I can't understand why QLineEdit can't send signal from QToolBar...
trying via addWidget and addAction, for example last edition:
self.searchDBLine = QtGui.QLineEdit(self)
self.searchDBLineAction = QtGui.QWidgetAction(self)
self.searchDBLineAction.setDefaultWidget(self.searchDBLine)
self.
Thanks Scott it works for me . just one typo mistake in ur code
css = QtCore.QFile(':/my_stylesheet.css')
css.open(QtCore.QIODevice.ReadOnly)
if css.isOpen():
self.setStyleSheet(QtCore.QVariant(*css*.readAll()).toString())
css.close()
Thank you for your help
On Thu, Dec 1, 2011 at 1:10 AM, S
Give this a try, It works for me in my application. I'm able to embed the
css file into the resources file.
css = QtCore.QFile(':/my_stylesheet.css')
css.open(QtCore.QIODevice.ReadOnly)
if css.isOpen():
self.setStyleSheet(QtCore.QVariant(qss.readAll()).toString())
css.close()
Cheers,
-Scott
Hi
Now i am getting this error on following code
*Error : Could not parse stylesheet of widget 0x9743b58*
Code :
#!/usr/bin/python
import os ,sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
file_path = QString("./css_file.css")
app =QApplication(sys.argv)
label = QLabel("message")
labe
On Sun, 27 Nov 2011 12:58:27 +, Chris Mayo
wrote:
> On 27/11/11 12:51, Phil Thompson wrote:
>> On Sun, 27 Nov 2011 12:47:09 +, Chris Mayo
>> wrote:
>>> With PyQt-x11-gpl-snapshot-4.9-e8284ed41e49,
>>> sip-4.13.1-snapshot-3b44dc2f0efd and:
>>>
>>> bus = QtDBus.QDBusConnection.systemBus()
On Ubuntu 11.04:
* Start Designer and use the basic widget template
* Add a QLabel.
* Right-click the label and enter rich-text editing
* Add some text with a superscript.
Now click the source tab. This is what I find:
"http://www.w3.org/TR/REC-html40/strict.dtd";>
p, li { white-space: pre-
On Wed, 30 Nov 2011 17:12:03 +0700, Alexandr N Zamaraev
wrote:
> My system Kubuntu 11.10
> PyQt 4.8.5 from default repositories.
> Qt 4.7.4 from default repositories.
>
> In QMenuBar no functions cornerWidget setCornerWidget
> Why?
I'm not sure - will be fixed in tonight's snapshot.
Thanks,
Phi
My system Kubuntu 11.10
PyQt 4.8.5 from default repositories.
Qt 4.7.4 from default repositories.
In QMenuBar no functions cornerWidget setCornerWidget
Why?
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/li