Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75323

[Qt 5.3] uic.exe and other tools won't work as evaluation expired

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      uic.exe in Qt 5.3 or older won't work with following error message even having active license.

      This software is using the trial version of the Qt GUI toolkit.
      The trial period has expired. If you need more time to
      evaluate Qt, or if you have any questions about Qt, contact us
      at: http://qt.digia.com/contact-us.
      

      qtbase\src\corelib\kernel\qtcore_eval.cpp in Qt 5.12.3 

      static int qt_eval_days_left()
      {
          const volatile char *const expiry_date = qt_eval_expiry_date + 12;
          QDate today = QDate::currentDate();
          QDate lastday = QDate::fromString(
                      QString::fromLatin1(const_cast<const char*>(expiry_date)), Qt::ISODate);
          return today.daysTo(lastday);
      }
      
      static bool qt_eval_is_expired()
      {
          return qt_eval_days_left() < 0;
      }
      

      qtbase\src\corelib\kernel\qtcore_eval.cpp in Qt 5.3.2

      static int qt_eval_days_left()
      {
          QDate today = QDate::currentDate();
          QDate build = QLibraryInfo::buildDate();
          return qMax<qint64>(-1, today.daysTo(build) + 30);
      }
      
      static bool qt_eval_is_expired()
      {
          return qt_eval_days_left() < 0;
      }
      

      Expected: uic.exe works and output ui_mainwindow.h

      Actual: Showing error message and not output ui_mainwindow.h

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              iknd Iikka Eklund
              Reporter:
              akizawa Akihito Izawa
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes