Il 18/01/23 17:10, Kai Köhne ha scritto:
(A nasty feature of uic is btw that it also does generate C++ code inside 
QT_BEGIN_NAMESPACE, QT_END_NAMESPACE. That is, if you have a .ui file for a 
Dialog, and you want to pre-declare the type generated by uic, you have to also 
put it in QT_BEGIN_NAMESPACE, QT_END_NAMESPACE, which is a bit surprising to me 
. Anyhow, changing this is probably not worth the breakages anymore ...

Well, it also makes no sense to keep doing it that way.

The code that uic generates belongs to the application, not to Qt. uic could get a -namespace X option and generate things in that namespace.

My 2 c,
--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to