Re: [PyQt] Just for fun: QCompleter accessing a QListWidget's internal model through a "proxy" ?

2010-08-17 Thread fpp
On Tue, Aug 17, 2010 at 9:25 PM, Matt Newell wrote: > On Tuesday 17 August 2010 11:23:55 fpp wrote: >> So I thought, perhaps naively, that it might be possible to build a >> kind of "proxy" model, that would feed a completer with data pulled >> from a list widget's hidden, internal model. >> > I

Re: [PyQt] Just for fun: QCompleter accessing a QListWidget's internal model through a "proxy" ?

2010-08-17 Thread Matt Newell
On Tuesday 17 August 2010 11:23:55 fpp wrote: > Hi everyone, > > After many moons of lurking I have finally subscribed to ask for > advice about my current challenge: > > In this app I'm working on (my first "real", non-trivial one, > admittedly), I have a number of QListWidgets in the main windo

[PyQt] Best way to implement a modular framework?

2010-08-17 Thread Bernard Van Der Stichele
Hello all, I'm looking for some advice as to the best way of implementing an MDI - like application which is modular. i.e. I want to have a MainWindow host with a menu which dynamically loads a list of modules available at start-up; where each module is simply a different dialog window interfac

[PyQt] Just for fun: QCompleter accessing a QListWidget's internal model through a "proxy" ?

2010-08-17 Thread fpp
Hi everyone, After many moons of lurking I have finally subscribed to ask for advice about my current challenge: In this app I'm working on (my first "real", non-trivial one, admittedly), I have a number of QListWidgets in the main window, holding plain strings, each with an associated QLineEdit

[PyQt] Relative imports in compiled UI files?

2010-08-17 Thread Virgil Dupras
I recently ported one of my apps to Python 3, and one of the headaches I had was because import statements in compiled UI files aren't relative ("from . import foo"). In python 2, it wasn't a problem because the lookup was made in the same folder as the module importing the thing, but under Python

Re: [PyQt] memory leak using QMainWindow.removeToolBar

2010-08-17 Thread Phil Thompson
On Mon, 16 Aug 2010 22:59:22 + (UTC), danny wrote: > thanks, > > your solution works, and stops my code from seg faulting. I'm curious > why mine doesn't work. In the documentation for QMainWindow > > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmainwindow.html#addToolBar-3 >