[PyQt] Regrettable behaviour of threading.local in QThread

2012-04-06 Thread Andrew Suffield
The attached script creates a threading.local within a QThread, and stores a value in it. It then reads this value back immediately, and later from an event handler. Unexpectedly, by the time we get to the event handler, the contents of the threading.local has been destroyed. I suspect there are

[PyQt] PyQt_PyObject <==> QVariant

2012-04-06 Thread Dio Gonzalez
Hello, I have a very similar scenario as described in the "PyObject to QVariant and back" thread: http://python.6.n6.nabble.com/PyObject-to-QVariant-and-back-td4557574.html I used sip to create bindings for several custom classes. I am wrapping them as QVariant in python to send them to a C++ c

[PyQt] QGraphicsView item select

2012-04-06 Thread Alfredo Junior
Hi people,  I am writing a PyQt application. There is a sqlite database where I store data collected from the mame games(mamedev.org). I created a QGraphicsView with the screens of the games. Also created a QTableWidget with information about the games. Now, I need these items to be selectable (s

[PyQt] Weird problem with time change and resources

2012-04-06 Thread Giuseppe Corbelli
A couple of weeks ago time here in Italy was changed from the Legal to the Solar timetable (or reverse, I never remember :-). Anyway this means that on a certain day the system wakes up and moves the clock 1 hour before. I have a fairly complex PyQT GUI app with C++ extension modules that uses PyQ