GitLabRequirements::listOfRequirements in Python
The signal/slot connection is alive in Python (3.12.2 + Qt 6.6.2):
import sys
from PySide6.QtWidgets import QApplication
from PySide6.QtCore import SIGNAL, SLOT, QObject
from PyTasteQtWidgets import TasteQtWidgets as QtTaste # after PySide!
def funca(value):
print(f"maybe its working!!! {value}")
if __name__ == "__main__":
app = QApplication(sys.argv)
url = "" # 1
manager = QtTaste.RequirementsManager()
model = QtTaste.RequirementsModelBase()
manager.listOfRequirements.connect(funca)
widget = QtTaste.RequirementsWidget(url, manager, model)
widget.setToken("blah-blah-blah")
widget.setUrl("https://gitrepos.estec.esa.int/taste/spacecreator") # 2
widget.show()
sys.exit(app.exec())
Although the resulting list is empty:
But that's probably because I used the wrong project URL.
Another thing, there seems to be an issue with url
marked # 1
in the code above. If I assign some value, I'd expect that value to be passed through the model to the widget automatically, but that doesn't happen, and it should be set explicitly in # 2
.