User Activity

  • Modified a comment on discussion Help on PythonQt

    I had no trouble creating QTreeView and connecting it to QAbstractTableModel on the Python side of PythonQt. Now I need to create a custom model by subclassing QAbstractItemModel, and I just can't make it working. Help is appreciated. Basically, the problem is with the createIndex() method, which accepts row/column and a pointer to a custom tree-item object. Since in Python there are no pointer, I tried passing just the object itself (as usual), but it failed with errors like this one: ValueError:...

  • Posted a comment on discussion Help on PythonQt

    I had no trouble creating QTreeView and connecting it to QAbstractTableModel on the Python side of PythonQt. Now I need to create a custom model by subclassing QAbstractItemModel, and I just can't make it working. Help is appreciated. Basically, the problem is with the createIndex() method, which accepts row/column and a pointer to a custom tree-item object. Since in Python there are no pointer, I tried passing just the object itself (as usual), but it failed with errors like this one: ValueError:...

  • Modified a comment on discussion Help on PythonQt

    Thanks for your help. The problem was that I am using PythonQtScriptingConsole, and after releasing the GIL, the app seg-faulted whenever I just typed into the console (without even pressing Enter). But if I do not interact with the console but just evaluate a script from my c++ app, then python threads run normally without blocking my c++ app. (Still, it's a bit surprising that seg-fault happens when I type a single letter in the console -- is python interpreter invoked without even pressing En...

  • Modified a comment on discussion Help on PythonQt

    Thanks for your help. The problem was that I am using PythonQtScriptingConsole, and after releasing the GIL, the app seg-faulted whenever I just typed into the console (without even pressing Enter). But if I do not interact with the console but just evaluate a script from my c++ app, then python threads run normally without blocking my c++ app. (Still, it's a bit supprising that seg-fault happens when I type a single letter in the console -- is python interpreter invoked without even pressing En...

  • Posted a comment on discussion Help on PythonQt

    Thanks for your help. The problem was that I am using PythonQtScriptingConsole, and after releasing the GIL, the app seg-faulted whenever I just typed into the console (without even pressing Enter). But if I do not interact with the cnsole but just evaluate a script from my c++ app, then python threads run normally without blocking my c++ app. (Still, it's a bit supprising that seg-fault happens when I type a single letter in the console -- is python interpreter invoked without even pressing Ent...

  • Modified a comment on discussion Help on PythonQt

    So, in 2019 closing to the end, what is the status of threading module support in PythonQt? I see the PythonQt::setEnableThreadSupport(true) method in the docs, and I call it when my app starts. Nevertheless, when I start threads in embedded interpreter, they are not working as expected. NOTE: I am not asking for help - just a short answer if threading is supported in last version of PythonQt (as suggested by the existence of the above-mentioned method) or not. P.S. Below is the code I use in python....

  • Modified a comment on discussion Help on PythonQt

    So, in 2019 closing to the end, what is the status of threading module support in PythonQt? I see the PythonQt::setEnableThreadSupport(true) method in the docs, and I call it when my app starts. Nevertheless, when I start threads in embedded interpreter, they are not working as expected. NOTE: I am not asking for help - just a short answer if threading is supported in last version of PythonQt (as suggested by the existence of the above-mentioned method) or not. P.S. Below is the code I use in python....

  • Posted a comment on discussion Help on PythonQt

    So, in 2019 closing to the end, what is the status of threading module support in PythonQt? I see the PythonQt::setEnableThreadSupport(true) method in the docs, and I call it when my app starts. Nevertheless, when I start threads in embedded interpreter, they are not working as expected. NOTE: I am not asking for help - just a short answer if threading is supported in last version of PythonQt (as suggested by the existence of the above-mentioned method) or not. P.S. Below is the code I use in python....

View All

Personal Data

Username:
galicarnax
Joined:
2019-05-14 08:31:58

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB