Qt 4.6 behaves differently when "overloading" signals
Dario Freddi
drf54321 at gmail.com
Sat Nov 7 17:26:48 GMT 2009
On Saturday 07 November 2009 18:19:44 you wrote:
> That warning and behaviour is about 5 or six years old. I asked thiago
> about it some weeks before. You only see it now because it only appears in
> qt developer builds which we only started to use when switching to the qt
> git repo.
>
> So i think the ... it worked with qt <4.6 may be unlikely. Are you really
> sure?
Sure, otherwise for example the k3bsetup and some other polkit-qt applications
wouldn't work as expected with qt 4.5.
>
> Mike
>
> On Saturday 07 November 2009 17:56:24 Dario Freddi wrote:
> > Hello list,
> >
> > I'm writing about a problem I've run into running Qt 4.6.
> > PolkitQt::Action inherits from QAction, and redefines the "activated()"
> > signal of it, so that it gets streamed when the action is also
> > authorized. This used to work fine with Qt < 4.6, but with Qt 4.6 I get
> > this warning line:
> >
> > Warning: QMetaObject::indexOfSignal:PolkitQt::Action: Conflict with
> > QAction::activated()
> >
> > And my application catching the signals actually catches
> > QAction::activated(). I found out about this behavior also in KDE
> > Partition Manager and I fear some more apps might actually be hurted by
> > this.
> >
> > Any thoughts from trolls? Is this an intended change? I quite don't like
> > the idea to change the name of the signal to make everything work again.
>
--
-------------------
Dario Freddi
KDE Developer
GPG Key Signature: 511A9A3B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20091107/d81c20d3/attachment.sig>
More information about the kde-core-devel
mailing list