Skip to content

Conversation

@Nimrod51
Copy link

@Nimrod51 Nimrod51 commented Nov 3, 2025

No description provided.

@kannes
Copy link

kannes commented Dec 4, 2025

This PR is a fix for QGIS4/Qt6 compatibility. Otherwise the logging would crash:

iface.messageBar().pushMessage(title="foo", text="bar", level=1)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: QgsMessageBar.pushMessage(): arguments did not match any overloaded call:
  overload 1: argument 'level' has unexpected type 'int'
  overload 2: argument 'level' has unexpected type 'int'
  overload 3: 'level' is not a valid keyword argument

while iface.messageBar().pushMessage(title="foo", text="bar", level=Qgis.MessageLevel.Warning) works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants