[Interest] QScriptProgram and multi-threading

2013-01-21 Thread Christian Schneider
Hi all. I have written a multi-threaded program (Qt 4.8.3) that executes QtScript code in multiple threads, each thread with its own QScriptEngine. The script code is wrapped in QScriptProgram object. Is the same QScriptProgram object supposed to be usable in multiple script engines

Re: [Interest] QScriptProgram and multi-threading

2013-01-21 Thread Tony Rietwyk
Sent: Monday, 21 January 2013 11:32 PM Hi all. I have written a multi-threaded program (Qt 4.8.3) that executes QtScript code in multiple threads, each thread with its own QScriptEngine. The script code is wrapped in QScriptProgram object. Is the same QScriptProgram object supposed to

Re: [Interest] QScriptProgram and multi-threading

2013-01-21 Thread Christian Schneider
On 01/21/13 15:31, Tony Rietwyk wrote: Sent: Monday, 21 January 2013 11:32 PM Hi all. I have written a multi-threaded program (Qt 4.8.3) that executes QtScript code in multiple threads, each thread with its own QScriptEngine. The script code is wrapped in QScriptProgram object. Is

[Interest] Re: reading javascript body from c++

2013-01-21 Thread Jan Kundrát
On Saturday, 8 December 2012 11:34:17 CEST, Andy Mayer wrote: I have a question regarding the possibilty of reading the body of a javascript function from c++. I want to create a DSL based on QML and I have to read the body of a javascript function. e.g. QML: Item { function

[Interest] QFileDialog: what's wrong with this minimal example

2013-01-21 Thread Wilhelm
Hi all, if I compile this stripped down minimal example - #include QApplication #include QFileDialog int main(int argc, char *argv[]) { QApplication a(argc, argv); QFileDialog fd(0, Load from file, QDir::currentPath(), All Files (*));

Re: [Interest] QFileDialog: what's wrong with this minimal example

2013-01-21 Thread Jason H
Looks ok. But try calling a.exec() and using a singleshot zero timeout timer (beforr a.exec()) to bring up the file dialog. Let us know if that works. From: Wilhelm wilhelm.me...@fh-kl.de To: Qt Interest interest@qt-project.org Sent: Monday, January 21,

Re: [Interest] QFileDialog: what's wrong with this minimal example

2013-01-21 Thread Scott Aron Bloom
In Qt 4.8, all I did to get it working was do a fd.show() in between the QFileDialog call and the a.exec(). It also works fine using the static call for QFileDialog::getOpenFileName Scott -Original Message- From: interest-bounces+scott.bloom=onshorecs@qt-project.org

Re: [Interest] QFileDialog: what's wrong with this minimal example

2013-01-21 Thread Wilhelm
Am 21.01.2013 19:36, schrieb Jason H: Looks ok. But try calling a.exec() and using a singleshot zero timeout timer (beforr a.exec()) to bring up the file dialog. Let us know if that works. That all works. I stripped down the example to bring only the run-time error. Looks like a Qt5-error,

Re: [Interest] QScriptProgram and multi-threading

2013-01-21 Thread Christian Schneider
Just as a heads up, I was able to narrow down the error and created a bug report: https://bugreports.qt-project.org/browse/QTBUG-29246 -Christian Am 21.01.2013 16:13, schrieb Christian Schneider: On 01/21/13 15:31, Tony Rietwyk wrote: Sent: Monday, 21 January 2013 11:32 PM Hi all. I

Re: [Interest] QGLContext::makeCurrent(): Failed. Why?

2013-01-21 Thread Guido Seifert
You should clean up your textures BEFORE calling toImage(). Does not make any difference if I clean up before or after. It is interesting and annoying that there is a warning I don't understand, but I suppose I can ignore this problem for the moment. I create a QGLPixelBuffer on the heap:

[Interest] QFileSystemModel broken in Qt5? (minimal example)

2013-01-21 Thread Wilhelm
Hi all, I have this minimal example: - #include QApplication #include QFileSystemModel int main(int argc, char *argv[]) { QApplication a(argc, argv); QFileSystemModel* fileSystemModel = new QFileSystemModel(0); fileSystemModel-setRootPath(QDir::homePath());

Re: [Interest] QFileSystemModel broken in Qt5? (minimal example)

2013-01-21 Thread Mandeep Sandhu
On Tue, Jan 22, 2013 at 12:47 PM, Wilhelm wilhelm.me...@fh-kl.de wrote: Hi all, I have this minimal example: - #include QApplication #include QFileSystemModel int main(int argc, char *argv[]) { QApplication a(argc, argv); QFileSystemModel* fileSystemModel = new

Re: [Interest] QFileSystemModel broken in Qt5? (minimal example)

2013-01-21 Thread Wilhelm
Am 22.01.2013 08:50, schrieb Mandeep Sandhu: On Tue, Jan 22, 2013 at 12:47 PM, Wilhelm wilhelm.me...@fh-kl.de wrote: Hi all, I have this minimal example: - #include QApplication #include QFileSystemModel int main(int argc, char *argv[]) { QApplication a(argc, argv);