Post #1817632
2026-04-26 19:01 UTC
@sgillies I wanted to get code running for both PyQt5 and PyQt6 by importing either as PQ and then getting from PQ.etc. Is there a way?
Replies (1)
-
@sgillies@mastodon.social 2026-04-26 19:11
@geospacedman Can you use the fully qualified name for QUrl? That would be PQ.QtCore.QUrl. Or, do `from PyQt5.QtCore import QUrl`.