Re: [PyQt] Resizing index widgets

2013-01-30 Thread Mads Ipsen
estions for a better approach. Best regards, Mads On 01/30/2013 07:11 PM, Detlev Offenbach wrote: Hi Mads, why are you using QTreeView? I would use QToolbox for such a layout. Regards, Detlev On Tuesday 29 January 2013, 22:31:14 Mads Ipsen wrote: Hi, We develop a tool for manipulating a

Re: [PyQt] button delegate in a tableview

2013-01-30 Thread Mads Ipsen
_ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- +-+ | Mads Ipsen | +--+--+ | Gåsebæksvej 7, 4. t

Re: [PyQt] HeightForWidth label

2013-01-10 Thread Mads Ipsen
. Januar 2013, 15:56:29 schrieb Mads Ipsen: Hi, 4-5 years I needed a widget with the following properties: * Display text incl. HTML * Text should be wrapped on several lines * When the widget is put into a layout, the height of the widget should be adjusted in such a way that the text

[PyQt] HeightForWidth label

2013-01-09 Thread Mads Ipsen
-- +-+ | Mads Ipsen | +--+--+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby| phone: +45-29716388 | | Denmark | email:mads.ip...@gmail.com

[PyQt] Size for hint label

2013-01-09 Thread Mads Ipsen
-- +-+ | Mads Ipsen | +--+--+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby| phone: +45-29716388 | | Denmark | email: mads.ip...@gmail.com

[PyQt] Python generated file changes not detected by QFileSystemModel

2012-05-22 Thread Mads Ipsen
Mads -- +-+ | Mads Ipsen | +--+--+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby| phone: +45-29716388 | | Denmark | email: ma

[PyQt] Widget over modal dialog

2012-05-15 Thread Mads Ipsen
2D plot if its open. Best regards, Mads -- +-----+ | Mads Ipsen | +--+--+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby|

[PyQt] Setting icon size on a header view

2012-03-14 Thread Mads Ipsen
? Best regards, Mads -- +-+ | Mads Ipsen | +--+--+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby| phone: +45-29716388

Re: [PyQt] Unit testing PyQt applications

2012-03-14 Thread Mads Ipsen
test that the QFileDialog was called Finally clean up and reinsert the old exec_ method. QtGui.QFileDialog.exec_ = new.instancemethod(old_exec, None, QtGui.QFileDialog) Makes sense? On 07/03/2012 18:13, Andreas Pakulat wrote: On 07.03.12 15:42:34, Mads Ipsen wrote: OK, I agree, the

Re: [PyQt] Unit testing PyQt applications

2012-03-07 Thread Mads Ipsen
. * What would be the proper way of unit testing this? * How should starting/stopping the event loop be handled? Best regards, Mads On 07/03/2012 10:51, Andreas Pakulat wrote: On 07.03.12 09:37:38, Mads Ipsen wrote: Hi, I have a general question about how to unit test PyQt applications using

Re: [PyQt] Unit testing PyQt applications

2012-03-07 Thread Mads Ipsen
On 07/03/2012 09:43, Luca Beltrame wrote: In data mercoledì 7 marzo 2012 09:37:38, Mads Ipsen ha scritto: the Python unittest moudle. I have attached a few examples. If you have time to take a look and comment, it would be great. I have a question on FooTest: is having a QApplication instance

Re: [PyQt] Unit testing PyQt applications

2012-03-07 Thread Mads Ipsen
7 marzo 2012 09:37:38, Mads Ipsen ha scritto: the Python unittest moudle. I have attached a few examples. If you have time to take a look and comment, it would be great. I have a question on FooTest: is having a QApplication instance enough in unittest to ensure emission of signals? Otherwise

Re: [PyQt] Unit testing PyQt applications

2012-03-07 Thread Mads Ipsen
On 07/03/2012 09:43, Luca Beltrame wrote: In data mercoledì 7 marzo 2012 09:37:38, Mads Ipsen ha scritto: the Python unittest moudle. I have attached a few examples. If you have time to take a look and comment, it would be great. I have a question on FooTest: is having a QApplication instance

[PyQt] Unit testing PyQt applications

2012-03-07 Thread Mads Ipsen
e happy to hear them. Best regards, Mads -- +-----+ | Mads Ipsen | +--+--+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby| phone:

Re: [PyQt] TableView - activated signal

2012-02-21 Thread Mads Ipsen
On 21/02/2012 16:47, Mateusz Korniak wrote: On Tuesday 21 of February 2012, Mads Ipsen wrote: On 21/02/2012 15:32, Mateusz Korniak wrote: On Tuesday 21 of February 2012, Mads Ipsen wrote: (...) I attach a snippet that reproduces the issue. So run the example and try to tell me why the

Re: [PyQt] TableView - activated signal

2012-02-21 Thread Mads Ipsen
On 21/02/2012 15:32, Mateusz Korniak wrote: On Tuesday 21 of February 2012, Mads Ipsen wrote: (...) I attach a snippet that reproduces the issue. So run the example and try to tell me why the activated signal is NOT triggered when a cell is clicked, double-clicked, entered etc. I get handlers

[PyQt] TableView - activated signal

2012-02-21 Thread Mads Ipsen
s the issue. So run the example and try to tell me why the activated signal is NOT triggered when a cell is clicked, double-clicked, entered etc. Best regards, Mads -- +-+ | Mads

[PyQt] activated signal

2012-02-17 Thread Mads Ipsen
ect(self.table, QtCore.SIGNAL('doubleClicked(const QModelIndex &)'), self.tableActivated) the method is called when a cell is double-clicked. What am I doing wrong? Mads -- +---

[PyQt] Hardcoded fonts in Qt designer

2011-11-30 Thread Mads Ipsen
opment where developers (on different OS's ie.) share UI files via a GIT repository, this quickly becomes a mess. Any suggestions? Preprocess all .ui files and chop out Best regards, Mads -- +----

[PyQt] Drag icons in QFileDialog

2011-09-23 Thread Mads Ipsen
Hi, I have reverse engineered the QFileDialog class so it can be used as a file browser. Now I'd like to be able to access the underlying machinery in such a way that I can control the displayed drag icons when e.g. a file with the .py extension is being dragged. Any clues to where I should

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

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

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

[PyQt] Screenshot with no show

2011-06-21 Thread Mads Ipsen
Hi, I have a GLWidget (OpenGL) based window which is used for displaying chemical structures. I would like to use this window to generate thumbnails used as icons for the files containing the chemical structures. I would like to hide this process of icon generation from the user, so is there

Re: [PyQt] Position widgets over widgets

2011-04-07 Thread Mads Ipsen
tton. This QPushButton is rendered useless (i.e.) you cannot press it. I thought solving this problem would be a walk in the park. Any clues? Best regards, Mads On 2011-04-07 15:19, Hans-Peter Jansen wrote: On Thursday 07 April 2011, 14:58:30 Mads Ipsen wrote: Hi, I have attached a simp

[PyQt] Position widgets over widgets

2011-04-07 Thread Mads Ipsen
Hi, I have attached a simple example where a widget sets up two labels. One which is added to the layout of the widget, and one which is not. In the paintEvent() of the parent widget I instead position the non-layout label using setGeometry to make it appear in the center of the parent widge

[PyQt] QTextEdit 80 chars wide

2011-01-27 Thread Mads Ipsen
Hi, Suppose I have a QTextEdit set up with a monospace font. How do I make the text edit field exactly 80 chars wide? E.g. similar to a command prompt window. Best regards, Mads -- +--+ | Mads Ipsen, Scientific developer

[PyQt] GMail

2010-12-08 Thread Mads Ipsen
Hi, If I post a message in the mailing list from my gmail account, my own post does not appear in my inbox. Has anybody here experienced a similar problem? Best regards, Mads -- +--+ | Mads Ipsen, Scientific developer

[PyQt] Select text in QMessageBox

2010-07-01 Thread Mads Ipsen
How do I make the text selectable (for mouse copy and paste) in a QMessageBox? On Linux, it works by default, but on windows, the text cannot be selected. Any clues? Best regards, Mads -- +--+ | Mads Ipsen, Scientific developer

Re: [PyQt] Overpainting example does not work

2010-04-20 Thread Mads Ipsen
lor(0, 0, 0, 127)) Best regards, Mads David Boddie wrote: On Mon Apr 19 20:55:32 BST 2010, Mads Ipsen wrote: The overpainting example does not work on my computer - no bubbles nor text is painted on top of the OpenGL scene. Anybody that can confirm this? Can you give some details

[PyQt] Overpainting example does not work

2010-04-19 Thread Mads Ipsen
Hey, The overpainting example does not work on my computer - no bubbles nor text is painted on top of the OpenGL scene. Anybody that can confirm this? Best regards, Mads -- +-+ | Mads Ipsen, Scientific developer

[PyQt] Show selected rows

2010-03-16 Thread Mads Ipsen
-- +-+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S | phone: +45-29716388 | | Nørre Søgade 27A | www

Re: [PyQt] Disposing of a QApplication

2010-03-12 Thread Mads Ipsen
on object QT_APP = QtGui.QApplication(sys.argv) All unit tests include this module - I believe this makes QT_APP a single object. Best regards, Mads -- +-+ | Mads Ipsen, Scientific developer

[PyQt] Uppercase QLineEdit

2010-01-25 Thread Mads Ipsen
ng strings in-place?Uppercase Any help/directions are welcome. Best, Mads -- +-+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S

[PyQt] fixup in QValidator

2010-01-25 Thread Mads Ipsen
Hi, I can't figure out how to use/implement the fixup() method of a QValidator. Any suggestions? Best regards, Mads -- +-+ | Mads Ipsen, Scientific deve

[PyQt] QString looks strang in online docs

2010-01-25 Thread Mads Ipsen
Doesn't QString look a little strange here: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qvalidator.html#fixup-2 -- +-+ | Mads Ipsen, Scientific deve

Re: [PyQt] Getting a couple errors when I try and start a QMainWindow from a QMainWindow

2010-01-08 Thread Mads Ipsen
dizou wrote: Solved this. How? -- +-+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S | phone: +45-29716388

[PyQt] Treeview with exclusive checkboxes - used to work

2010-01-08 Thread Mads Ipsen
ndardItem(value) item.setCheckable(True) self._model.appendRow([item]) # Add the elements self.setModel(self._model) if __name__ == "__main__": app = QtGui.QApplication(sys.argv) widget = View() widget.show() sys.

[PyQt] Always on top on windows

2010-01-05 Thread Mads Ipsen
widget.show() sys.exit(app.exec_()) -- +-----+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S | phone: +45-29716388 | | Nørre Søgade 27A | www:www.quantumwise.co

[PyQt] Object::disconnect: Unexpected null parameter

2009-11-27 Thread Mads Ipsen
ed as what to look for. Any clues? Best regards, Mads -- +-----+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S | phone:

Re: [PyQt] Error when double clicking

2009-11-17 Thread Mads Ipsen
Gui.QApplication(sys.argv) widget = TreeWidget() widget.show() sys.exit(app.exec_()) -- +-----+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S

Re: [PyQt] insert a radio button in menu of menubar

2009-11-12 Thread Mads Ipsen
nubar. -- +-+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S | phone: +45-29716388 | | Nørre Søgade 27A

Re: [PyQt] How to read this mailing list?

2009-11-04 Thread Mads Ipsen
-- +-+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S | phone: +45-29716388 | | Nørre Søgade 27A | www:www.quantumwise.com | | DK-1370 Copenhagen K, Denmark | email: m

Re: [PyQt] WaitCursor is ignored

2009-11-03 Thread Mads Ipsen
Baz Walter wrote: Mads Ipsen wrote: Hey, I want to display a widget as disabled (setEnabled(False)) with its cursor set to Qt.WaitCursor. Disabling the widget, however, always display the widget with a normal Qt.ArrowCursor if if the cursor is changed. How do I obtain a disabled widget

Re: [PyQt] pyuic : backslash escaping with untranslatable strings

2009-11-03 Thread Mads Ipsen
Mads Ipsen wrote: Felix Schmidt wrote: Hi, I got the following bug (or Feature?) in pyuic : With Qt Designer I created a QLineEdit with inputMask set to "\0\x>;_" (to input a hex-value like "0x12AB"). So far it's fine. But when I uncheck the "translatab

Re: [PyQt] pyuic : backslash escaping with untranslatable strings

2009-11-03 Thread Mads Ipsen
yQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt Things is: It fails on Ubuntu 8.04, KUbuntu 9.04 and Ubuntu 9.04 with Qt 4.5.2. But it works on Mac OS X with Qt 4.6.0-beta and XPSP3 with Qt 4.3.3. I believe its a Qt

[PyQt] WaitCursor is ignored

2009-11-03 Thread Mads Ipsen
WaitCursor) widget.setCursor(cursor) sys.exit(app.exec_()) -- +-----+ | Mads Ipsen, Scientific developer| +---+-+ | QuantumWise A/S | phone: +4

[PyQt] Block for interactions

2009-10-30 Thread Mads Ipsen
a modal dialog. Is this just calling setEnabled(False) or is there some more specific method? A blocked widget look different from a disabled widget. Best regards, Mads -- +-+ | Mads Ipsen, Scientific developer

[PyQt] Wrong cursor

2009-10-29 Thread Mads Ipsen
n(sys.argv) widget = QtGui.QWidget() widget.show() cursor = QtGui.QCursor(QtCore.Qt.SizeAllCursor) widget.setCursor(cursor) sys.exit(app.exec_()) -- +-----+ | Mads Ipsen, Scientific

Re: [PyQt] QValidator raises TypeError

2009-10-20 Thread Mads Ipsen
Phil Thompson wrote: On Tue, 20 Oct 2009 13:01:01 +0200, Mads Ipsen wrote: I am trying to implement a simple validator for a QLineEdit. To do this you should inherit from QtGui.QValidator and overload the method validate(). The validate method should then return either of the flags

[PyQt] QValidator raises TypeError

2009-10-20 Thread Mads Ipsen
.QLineEdit() line_edit.setValidator(Validator()) line_edit.show() sys.exit(app.exec_()) -- +-----+ | Mads Ipsen, Scientific developer| +---+-+ | Quant

[PyQt] PyQt 4.6 build wanings

2009-10-17 Thread Mads Ipsen
’ sip/QtCore/qdatetime.sip:55: warning: deprecated conversion from string constant to ‘char*’ -- +-+ | Mads Ipsen, Scientific developer| +---+-+ | Quantu

Re: [PyQt] QMessageBox does not get focus

2009-09-27 Thread Mads Ipsen
Mads Ipsen wrote: When I launch a QMessageBox like below, from a QMainWindow the box does not have keyboard focus (its not the active window), implying that the key-shortcuts cannot be used. Any fixes or suggestions? Mads QtGui.QMessageBox.warning(self, 'Some

[PyQt] QMessageBox does not get focus

2009-09-27 Thread Mads Ipsen
QtGui.QMessageBox.No, QtGui.QMessageBox.Cancel | QtGui.QMessageBox.Escape) -- +----+ | Mads Ipsen, Scientific developer | +--+-+ | QuantumWise A/S

[PyQt] Menu bar entry name - suggestions?

2009-09-25 Thread Mads Ipsen
. An equivalent is the 'Windows' menu entry that display a list of all currently open windows. Any good suggestions are most welcome. Mads -- +----+ | Mads Ipsen, Scientific

[PyQt] Segmentation fault in keyPressEvent

2009-09-17 Thread Mads Ipsen
e an error. Sys info: Ubuntu 8.04 Qt 4.5.2 PyQt 4.5.4 -- +----+ | Mads Ipsen, Scientific developer | +--+-+ | QuantumWise A/S | phone: +4

[PyQt] Error in example script

2009-09-08 Thread Mads Ipsen
replaced by QtGui.QMessageBox.information Best regards, Mads -- +--------+ | Mads Ipsen, Scientific developer | +--+-+ | QuantumWise A/S | p

Re: [PyQt] Selecting several table items

2009-08-20 Thread Mads Ipsen
Mads Ipsen wrote: Hi, Ho do I programmatically select several items in a QTableView? I can select one element by calling the method setCurrentIndex(), but that only selects a single item. I need to do this in order to write a proper unit test. Best regards, Mads Hi, Solved this one by

[PyQt] Selecting several table items

2009-08-20 Thread Mads Ipsen
-- ++ | Mads Ipsen, Ph.D, Scientific software developer| +--+-+ | QuantumWise A/S | phone: +45-29716388 | | Nørresøgade 27A | www:www.quantumwise.com | | DK-1370 Copenhagen

Re: [PyQt] headerDataChanged

2009-08-20 Thread Mads Ipsen
Phil Thompson wrote: On Thu, 20 Aug 2009 09:53:48 +0200, Mads Ipsen wrote: Hi, How do I emit the signal headerDataChanged in PyQt when implementing the method setHeaderData() for a QAbstractTableModel? The C++ syntax is emit headerDataChanged(orientation, section, section); and the

[PyQt] headerDataChanged

2009-08-20 Thread Mads Ipsen
( Qt::Orientation orientation, int first, int last ) but I don't know how to convert that to Python syntax. Best regards, Mads -- +----+ | Mads Ipsen, Ph.D, Scientific software deve

Re: [PyQt] Which QStyle

2009-07-22 Thread Mads Ipsen
Matt Newell wrote: On Tuesday 21 July 2009 13:46:09 Mads Ipsen wrote: How do I programatically determine which style I am using, i.e. whether it's QWindowsStyle, QMacStyle, QMotifStyle etc. style = QApplication.instance().style() print style.metaObject().className() Matt T

[PyQt] Which QStyle

2009-07-21 Thread Mads Ipsen
How do I programatically determine which style I am using, i.e. whether it's QWindowsStyle, QMacStyle, QMotifStyle etc. -- +----+ | Mads Ipsen, Ph.D, Scientific software deve

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-23 Thread Mads Ipsen
projetmbc wrote: Mads Ipsen a écrit : If you change 'QDialog' to 'QWidget' the problem disappears. But I have no idea why. Anybody? Best regards, Mads In the first example proposed that did not work, you can see that the button has the focus even if the cursor is in t

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-22 Thread Mads Ipsen
Sibylle Koczian wrote: "Mads Ipsen" schrieb: Sibylle Koczian wrote: Hello, I've got a dialog with a QLineEdit and a QPushButton. The QLineEdit is connected to a method which takes its text and appends it to a QTextBrowser (that's taken from the first GUI example i

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-21 Thread Mads Ipsen
Sibylle Koczian wrote: Hello, I've got a dialog with a QLineEdit and a QPushButton. The QLineEdit is connected to a method which takes its text and appends it to a QTextBrowser (that's taken from the first GUI example in the PyQt book by M. Summerfield). The "clicked()" signal of the QPushButton

Re: [PyQt] problem with mouseDoubleClickEvent on QTreeView 1

2009-06-21 Thread Mads Ipsen
laurlaur wrote: Just for a better view Hi, I'm new in PyQt programing so please have mercy :) I want to display the directories content and to catch the event mouseDoubleClickEvent , but it seems that I have some problems chatching this event. Eventualy if someone have a better ideea how to do th

Re: [PyQt] Empty style sheet changes QLineEdit

2009-06-18 Thread Mads Ipsen
David Wolfe wrote: On 6/12/2009 2:32 AM, Mads Ipsen wrote: * Try to enter a 'g' in the example included below. The lower part of the 'g' will be invisible... FWIW, I can't reproduce this behavior using Riverbank's binary installer for PyQt4.5 (bundles Qt4.5.1)

[PyQt] Empty style sheet changes QLineEdit

2009-06-11 Thread Mads Ipsen
Hi, I can't seem to understand this. If I pass an empty stylesheet to a QLineEdit, the edit field changes property. * Try to enter a 'g' in the example included below. The lower part of the 'g' will be invisible. * Remove the call to setStyleSheet(). The lower part of the 'g' becomes visible

[PyQt] QApllication changes the locale

2009-06-08 Thread Mads Ipsen
On a machine with LANG=en_DK.UTF-8 The script import numpy # Now numpy is OK print "%s" % (numpy.float64(3.023423)) print "%s %r" % (numpy.float32(3.023423), numpy.float32(3.023423)) prints 3.023423 3.02342 3.023423 Now change the script to import sys, os from PyQt4 import QtCore,

[PyQt] QSortFilterProxyModel - AttributeError

2009-06-05 Thread Mads Ipsen
Hi, The script below fails with PyQt-4.4.4 qt-4.5.1 giving the error: Traceback (most recent call last): File "simple.py", line 14, in print proxy_model.sortColumn() AttributeError: sortColumn Am I missing something here? Best regards, Mads import sys from PyQt4 import QtCore, QtGui

Re: [PyQt] QSpinBox: behavior on Linux

2009-06-04 Thread Mads Ipsen
TP wrote: Hi everybody, I have detected a strange behavior on Linux with QSpinBox (try the code example below): when the "valueChanged( int )" signal is connected to a function that takes some time to execute, sometimes the "up" and "down" clickable buttons of the QSpinBox increment and decrem

Re: [PyQt] Simple connect does not work

2009-04-24 Thread Mads Ipsen
> On Friday 24 April 2009, Mads Ipsen wrote: > >> OK, I need to use a signature (see below). Sorry for bothering you! >> >> class SpinBox(QtGui.QSpinBox): >> def __init__(self, parent=None): >> QtGui.QSpinBox.__init__(self, parent) >> >>

Re: [PyQt] Simple connect does not work

2009-04-24 Thread Mads Ipsen
> Hi, > > I am puzzled why the connection used in the example below does not work. I > get the error: > > Object::connect: No such slot SpinBox::foo(int) > > Example snippet: > > import sys > from PyQt4 import QtCore, QtGui > > class SpinBox(QtGui.QSpinBox): > def __init__(self, parent=None): >

[PyQt] Simple connect does not work

2009-04-24 Thread Mads Ipsen
Hi, I am puzzled why the connection used in the example below does not work. I get the error: Object::connect: No such slot SpinBox::foo(int) Example snippet: import sys from PyQt4 import QtCore, QtGui class SpinBox(QtGui.QSpinBox): def __init__(self, parent=None): QtGui.QSpinBox._

Re: [PyQt] RuntimeError: underlying C/C++ object has been deleted

2009-04-23 Thread Mads Ipsen
> Os Windows Vista Home Ru + sp1 > g++ (GCC) 3.4.5 (mingw-vista special r3) > Qt 4.5 (self build) > sip-4.7.9 (self build) > PyQt-win-gpl-4.4.4.zip (self build) > > I was unable to allocate a minimum example. Here is pseudocode situations: > [code] > > class BaseData(QObject): >def save(self, o

[PyQt] QItemDelegate + Hover

2009-04-19 Thread Mads Ipsen
Hi, I would like the editor of my ItemDelegate to be triggered when the mouse is hovered over the item. I've modified the 'spinboxdelegate.py' (example included below): * Reimplement the paint method of QItemDelegate * Call setAttribute(QtCore.Qt.WA_Hover) on the TableViews viewport() method and

Re: [PyQt] Larger size of QIcon?

2009-03-25 Thread Mads Ipsen
> Hi all, > > I have just started using pyqt4 and decided to make a small > thumbnail-viewer to learn how things work. > > I would like the thumbnails to be displayed in a grid that > automatically change the grid when resized so I use the QListWidget. > So far so good - it works fine ...almost...

Re: [PyQt] QTableView header connection

2009-03-18 Thread Mads Ipsen
> > Hey all, > > Since I still haven't been able to > http://www.nabble.com/Sorting-column-with-QComboBox-cellwidgets-td22499840.html > automatically sort a column with combo boxes , and now have another column > with special sorting conditions, I'd like to manually do the sorting. > > The problem

Re: [PyQt] subprocess in PyQt

2009-03-14 Thread Mads Ipsen
> > > > Mads Ipsen-3 wrote: >> >>> >>> Hello guys; >>> >>> i have a function that suppose to do something and from terminal it has >>> this >>> syntax to be executed; >>> >>> was...@home:~/Desktop/Project2/GU

Re: [PyQt] subprocess in PyQt

2009-03-14 Thread Mads Ipsen
> > Hello guys; > > i have a function that suppose to do something and from terminal it has > this > syntax to be executed; > > was...@home:~/Desktop/Project2/GUI$ python myexif.py -q "pathfile" > > test.csv > > so far on using subprocess i came up with this; > > from subprocess import * > x=Popen(

Re: [PyQt] Connecting to a QItemModel

2009-03-07 Thread Mads Ipsen
> On Fri, Mar 6, 2009 at 6:22 PM, Mads Ipsen wrote: >>> How does one connect to the signals of a QItemModel? >>> >>> I tried the following, but it didn't work: >>> >>> self.connect( >>> self.model, >&g

Re: [PyQt] Connecting to a QItemModel

2009-03-06 Thread Mads Ipsen
> How does one connect to the signals of a QItemModel? > > I tried the following, but it didn't work: > > self.connect( > self.model, > QtCore.SIGNAL('itemChanged(QStandardItem 8)'), > self.on_model_itemChanged > ) > >

[PyQt] (no subject)

2009-02-10 Thread Mads Ipsen
- Original Besked Fra: Markus Feldmann Til: pyqt@riverbankcomputing.com Emne: [PyQt] Re: how to show interactive Picture Dato: 09/02/09 23:58 > Mads Ipsen schrieb: > > Could is be that you try to paint before the window is shown? You need to > > call show() befor

Re: [PyQt] Re: how to show interactive Picture

2009-02-10 Thread Mads Ipsen
- Original Besked Fra: Markus Feldmann Til: pyqt@riverbankcomputing.com Emne: [PyQt] Re: how to show interactive Picture Dato: 09/02/09 23:58 > Mads Ipsen schrieb: > > Could is be that you try to paint before the window is shown? You need to > > call show() befor

Re: [PyQt] how to show interactive Picture

2009-02-09 Thread Mads Ipsen
- Original Besked Fra: Markus Feldmann Til: pyqt@riverbankcomputing.com Emne: [PyQt] how to show interactive Picture Dato: 09/02/09 23:18 > Hi All, > > i am programming a MDI Application where a Window in the > workspace shall work as a Map Program. Therefore i want > to show a

[PyQt] compare EditTriggers

2009-02-06 Thread Mads Ipsen
Suppose I say tree_view = QTreeView() tree_view.setEditTriggers(QAbstractItemView.DoubleClicked | QAbstractItemView.SelectedClicked) Then I can query the flags I just set by calling triggers = tree_view.editTriggers() But how do I test that the flags that I just have set actually are the ones r

Re: [PyQt] Getting it ready to ship.

2009-02-06 Thread Mads Ipsen
- Original Besked Fra: Knapp Til: pyqt@riverbankcomputing.com Emne: [PyQt] Getting it ready to ship. Dato: 06/02/09 09:51 > OK, I now have a little finished project that I want to send out to > buyers so they can take a look. How do I get the python into a format > that the code

Re: [PyQt] rcc module?

2009-02-05 Thread Mads Ipsen
- Original Besked Fra: Phil Thompson Til: Brent Villalobos Cc: pyqt@riverbankcomputing.com Emne: Re: [PyQt] rcc module? Dato: 05/02/09 21:43 > On Thu, 05 Feb 2009 11:59:20 -0800, Brent Villalobos > wrote: > > Is there an rcc python module si

Re: [PyQt] set qlineedit red, easy?? SOLVED

2009-02-05 Thread Mads Ipsen
- Original Besked Fra: Knapp Til: Frédéric Cc: pyqt@riverbankcomputing.com Emne: Re: [PyQt] set qlineedit red, easy?? SOLVED Dato: 05/02/09 13:11 > On Thu, Feb 5, 2009 at 12:50 PM, Frédéric > wrote: > > > > Le 5/2/2009, "Knapp"

Re: [PyQt] item delegates

2009-02-05 Thread Mads Ipsen
.row() != someRow: > return QtGui.QItemDelegate(self, index, ... ) > > return myWidget > > if that makes sense, could be over kill though. Alternatively if you are > using a custom model you might be able to set some flags on the cell you > want and not the others

[PyQt] item delegates

2009-02-04 Thread Mads Ipsen
Hi, Suppose I have a TableView. Then I can set itemdelegates for a column, a row or the entire view using the respective methods void setItemDelegateForColumn ( int column, QAbstractItemDelegate * delegate ) void setItemDelegateForRow ( int row, QAbstractItemDelegate * delegate ) void setItemDele

Re: [PyQt] QSpinBox and setLineEdit

2009-01-30 Thread Mads Ipsen
- Original Besked Fra: Matt Smith Til: pyqt@riverbankcomputing.com Cc: Mads Ipsen Emne: Re: [PyQt] QSpinBox and setLineEdit Dato: 30/01/09 19:10 > > Yes, this will do the trick provided that the function you connect to does > > not take to long to update. In that c

[PyQt] SpinBox jam/lock

2009-01-30 Thread Mads Ipsen
The following observation occurs on Linux (Ubuntu 8.04) with PyQt-4.4.4 and qt-4.4.3. If you connect to the valueChanged signal from a spin box, and the function you call, take a long time before it returns, the spin box jams and does several increments of it value. I have included a small snippet

Re: [PyQt] QSpinBox and setLineEdit

2009-01-30 Thread Mads Ipsen
to returns. I post a small cone snippet in a separate post that illustrates this. Mads - Original Besked Fra: Matt Smith Til: Mads Ipsen Cc: pyqt@riverbankcomputing.com Emne: Re: [PyQt] QSpinBox and setLineEdit Dato: 30/01/09 15:15 > On Fri, 2009-01-30 at 14:55 +0100, Mads Ip

Re: [PyQt] QSpinBox and setLineEdit

2009-01-30 Thread Mads Ipsen
- Original Besked Fra: Matt Smith Til: pyqt@riverbankcomputing.com Emne: Re: [PyQt] QSpinBox and setLineEdit Dato: 30/01/09 14:11 > > > > > Well, OK. My problem is that I would like to connect up to the > > textChanged(const QString &) signal emitted by the spinbox's linee