QtCreator support for Python / PyQt.

Giuseppe Corbelli corbelligiuseppe at mesdan.it
Thu Oct 22 14:38:32 BST 2020

On 10/21/20 10:12 PM, Stefan Seefeld wrote:
> On 2020-10-15 4:13 a.m., Giuseppe Corbelli wrote:
>> On 9/7/20 8:53 PM, Stefan Seefeld wrote:
>>> Hello,
>>> my team is developing Qt applications with a mix of C++ and Python 
>>> (using PyQt). The default development environment is using QtCreator. 
>>> However, it appears QtCreator is rather C++-centric, while with PyQt 
>>> we'd like to use more pythonic development workflows (including 
>>> pytest for testing, notably).
>>> Does anyone on this list know whether it's possible to fine-tune 
>>> QtCreator to support such use-cases ? Are there perhaps any plugins 
>>> available to enable such integration ?
>> https://doc.qt.io/qtcreator/creator-language-servers.html
>> https://pypi.org/project/python-language-server/
> Thanks, but that seems to be focused on editing (code completion etc.), 
> while I'm looking for workflow customizations to adapt stages like 
> "build" and "test" to Python code. In particular, I'm looking for ways 
> to make qtcreator recognize and integrate pytest tests so doing a test 
> run of my hybrid C++/Python project can also run pytest (and list all 
> the individual tests with their test result).

In the Project properties you can define one or more Build Steps (which 
can also be test steps of course). Depending on the tool output you may 
need to define custom output parsers.

Probably a little cumbersome, but I think you should be able to get 
something working.

Giuseppe Corbelli

More information about the PyQt mailing list