[Development] [QTBUG-23273] Change to Q_DECLARE_INTERFACE interfaces

simon.hausmann at nokia.com simon.hausmann at nokia.com
Wed May 2 17:22:16 CEST 2012


I believe changing the string in Q_DECLARE_INTERFACE is binary incompatible but fully source compatible. 

The string gets embedded in moc generated code as well as .o files on the caller side when doing a q_object_cast to an interface.

At run-time they must match for the cast to succeed.

Simon

--
Sendt fra min Nokia N902.05.12 16:53 skrev ext Thiago Macieira:
The task https://bugreports.qt-project.org/browse/QTBUG-23273 is assigned to 
me and requests that we stop using the "com.trolltech" reverse domain in our 
interfaces.

I have not a single clue about how Q_DECLARE_INTERFACE works or where it's 
used. I will happily do the search and replace, but I need someone to reply to 
this email saying, with 100% certainty, that this will not cause regressions 
compared to Qt 4. I will also accept someone with 100% certainty saying that 
the regressions are minimal and acceptable.

Otherwise, I will close the task saying we can't do it for source-
compatibility reasons.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden


More information about the Development mailing list