[Development] Removing overloaded signals in Qt6
sergio.martins at kdab.com
Fri Nov 29 11:21:32 CET 2019
On 2019-11-29 08:15, Ville Voutilainen wrote:
> On Wed, 27 Nov 2019 at 17:52, Sérgio Martins via Development
> <development at qt-project.org> wrote:
>> I suggest we rename such signals, as KDE is already doing for KF6
>> leave the old signatures there, to reduce Qt6 SIC)
>> There's also a new clazy check 'overloaded-signal' to help finding
> Any thoughts
> on overloaded slots, or overloaded member functions as slot-targets?
> The latter are a tad
> harder to diagnose.
slots are a different case, since you can simply connect to a lamdba
that calls the slot. Which is already
what you do when the slot arguments don't match, too.
Another difference is that many slots are setters. Renaming setters
starts to feel weird.
So I would leave the slots alone.
List of overloaded stuff in qtbase:
Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts
More information about the Development