Qt No Contextless Connect

As many long running projects, Qt too over the years has accumulated some APIs that in hindsight are deemed unsafe or sub-optimal. For example, Qt by default implicitly converts const char* to QString. While that usually only incurs a runtime overhead, maybe encoding problems, but also admittedly less cluttered code, there’s other APIs that can backfire in more subtle ways. One such API is doing a “context-less connect”.


This is a companion discussion topic for the original entry at https://blog.broulik.de/2026/04/qt-no-contextless-connect/
2 Likes