[PyQt] Word wrap in QLabel - strange resizing

2011-08-22 Thread Mads Ipsen
Hi, If you set wordWrap to True for a QLabel in widget the layout, the resizing of the widget is kinda strange: The widget can be resized to nothing etc. I've attached a small example, displaying two widgets: One with and one without wordwrap. This must be a bug, right? Best regards, Mads

[PyQt] Error in libQtGui.so.4

2011-08-22 Thread Vincent Vande Vyvre
Hi, I encounter this problem on Linux Ubuntu from PyQt4 import QtCore, QtGui ImportError: /usr/lib/libQtGui.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv I guess the problem is in the debian package

[PyQt] Word wrap in QLabel - strange resizing - rephrased

2011-08-22 Thread Mads Ipsen
Sorry for my extremely sloppy writing. I'll try again: Hi, If you set wordWrap to True for a QLabel which has been added to a widget with a layout, the resizing of the parent widget is kinda strange: The widget can be resized to nothing etc. I've attached a small example, displaying two

Re: [PyQt] Error in libQtGui.so.4

2011-08-22 Thread Vincent Vande Vyvre
Le 22/08/11 11:29, Jonathan Riddell a crit: On 22 August 2011 10:13, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: from PyQt4 import QtCore, QtGui ImportError: /usr/lib/libQtGui.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv

Re: [PyQt] Error in libQtGui.so.4

2011-08-22 Thread Vincent Vande Vyvre
Le 22/08/11 11:46, Vincent Vande Vyvre a crit: Le 22/08/11 11:29, Jonathan Riddell a crit: On 22 August 2011 10:13, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: from PyQt4 import QtCore, QtGui ImportError:

Re: [PyQt] Word wrap in QLabel - strange resizing - rephrased

2011-08-22 Thread Jeremy Sanders
Mads Ipsen wrote: I've attached a small example, displaying two widgets which both include a QLabel: one with wordwrap on, and one without. Try to resize the two widgets and see if you can reproduce the behavior. This must be a bug, right? This is a fairly well known Qt bug but I can't

Re: [PyQt] Word wrap in QLabel - strange resizing - rephrased

2011-08-22 Thread Mads Ipsen
Thanks. It seems strange to me though, that something like this even can be an issue, in the sense that it haven't been fixed ages ago. But maybe it isn't as trivial as it looks? Mads On 08/22/2011 12:39 PM, Jeremy Sanders wrote: Mads Ipsen wrote: I've attached a small example,

Re: [PyQt] Word wrap in QLabel - strange resizing - rephrased

2011-08-22 Thread Jeremy Sanders
Mads Ipsen wrote: It seems strange to me though, that something like this even can be an issue, in the sense that it haven't been fixed ages ago. But maybe it isn't as trivial as it looks? I seem to recall it being a design issue, so it's hard to fix without breaking something else. Perhaps

[PyQt] QItemDelegate createEditor - help with focusOut on custom widget

2011-08-22 Thread James Holstead
Greetings, OS X 10.5.8 PyQT 4.8.3 I created a widget PathWidget which has a QGridLayout that contains 3 QComboBox's. This widget is only displayed in a specific column of a QTableView using the createEditor method override of the QItemDelegate. We started experiencing that the application

[PyQt] Leak found in PyQt version 4.8.5-1 / 4.8.5 win32 build

2011-08-22 Thread Carl Wolff
Hello, the following piece of code leaks: import PyQt4.QtGui import PyQt4.QtCore import time app = PyQt4.QtGui.QApplication([]) mainWindow = PyQt4.QtGui.QMainWindow() while True: button = PyQt4.QtGui.QPushButton(mainWindow) button.parent().findChild(PyQt4.QtCore.QObject, foo)

Re: [PyQt] Leak found in PyQt version 4.8.5-1 / 4.8.5 win32 build

2011-08-22 Thread Carl Wolff
Hello, attached the file containing the source. Best regards, Carl. - Carl Wolff(See attached file: leak.py) Consultant Tel, 033-454 Mob: 06-53469668 www.imtech.nl pyqt-boun...@riverbankcomputing.com wrote on 22-08-2011 20:00:31: Carl Wolff carl.wo...@imtech.nl Sent by:

[PyQt] Adding a table to GUI in QT Designer

2011-08-22 Thread Nader Abedrabbo
Greetings, I am new to PyQt. I am creating a GUI for a program I created in Python and I need to add a table with advanced functions in it. I am able to use QTableWidget to create the table, but there is no right click functionality to the table. I need to create a table to do these things:

Re: [PyQt] Adding a table to GUI in QT Designer

2011-08-22 Thread Tony Peña
yes it's possible to do that... read about QMenu classes to do the right click and maybe visit here to other examples http://www.rkblog.rk.edu.pl/w/p/python/#3 2011/8/22 Nader Abedrabbo aenad...@yahoo.com Greetings, I am new to PyQt. I am creating a GUI for a program I created in Python

Re: [PyQt] Printing from QWebView (contents visible) gives a set of blank pages

2011-08-22 Thread ivanko.rus
Thank you for answering. The strange thing is that my versions are the same as yours. But well, I made an ultra-dirty hack by passing the QWebView's HTML to a QTextEdit and then printing it from there, so for now it will serve (the pages I am loading into my QWebView are actually pretty simple).