Important: Please read the Qt Code of Conduct -

Migrating to Qt5: problem with QMAKE_UIC

  • Well I wanted to migrate project which uses custom(non-Qt) localization system to Qt5, so basically there was just simple line in .pro file:

    When I've tried to build it with Qt5, variable QMAKE_UIC didn't seem to affect anything. When I've found following lines in file changes-5.0.0:
    @The QMAKE_INCDIR_QT, QMAKE_LIBDIR_QT, QMAKE_MOC, QMAKE_UIC, QMAKE_IDC, TEMPLATE & QT variables should not be defined any more. Furthermore, QMAKE_LIBS_X11SM is obsolete.@
    But actually through some tries of googling this issue I can't seem to find the alternative solution how to apply "-tr" to each uic call. So my question is - is there anyway to do it?

  • Ok looks like, I've found that the possible way to do it is
    @load (uic)
    uic.commands += -tr UIC_GET_TEXT@

Log in to reply