You are not logged in.


Tuesday, November 28th 2017, 1:35pm

Button click counter works within Qt but not when run in python


I am fairly new to python/Qt and to this forum so forgive any mistakes.

I have a Qt project with basic push buttons, lcd's and such that I run in a python script. All works well and looks great. Recently I wanted to add a counter that increases/decreases with + and - buttons. I was able to do this adding a couple of lines to the mainwindow.cpp and mainwindow.h files. This works when the GUI is launched within Qt Creator, but does not carry over when I launch the GUI within the python script. Any other changes (labels, new buttons, etc) carry over just fine.

I can post any and/or all code. Just wondering if anyone has an idea. Thanks.