OK, I am not a Python expert, but what I think is happening is that in get_Critical_Alarms() you are setting a new model on your list. This causes the selectionModel() to become invalid, and...
d_stranz Today, 20:40The bulk of the code is as follows. I have not included the SQL connection string as this works.
import sys
import datetime
from PyQt5 import QtWidgets as qtw
from PyQt5 import QtCore as qtc...
I don't think you understand how signals and slots work. A connection (via connect()) between a signal (selectionChanged()) amd a slot (get_Details()) does not result in an immediate function call...
d_stranz Today, 17:53Have a look at QwtPlotPicker and its trackerText feature.
HTH,
Uwe
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.
QT5 (Python) - Get top index parent in a recursive map
23rd February 2021 22:15 by peshmerga