Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Migrating to Qt5: problem with QMAKE_UIC
Forum Updated to NodeBB v4.3 + New Features

Migrating to Qt5: problem with QMAKE_UIC

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Predelnik
    wrote on last edited by
    #1

    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:
    @QMAKE_UIC += -tr UIC_GET_TEXT@

    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?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Predelnik
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved