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

qmlscene calls QApplication::installTranslator() without QT_WIDGETS_LIB guards

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 5.0.0
    • Quick: SceneGraph
    • None
    • 1b3d4a94fdd578786529f51b4d25b560696fb610

    Description

      In the method loadTranslationFile() of qtdeclarative/tools/qmlscene/main.cpp, qmlscene makes a reference to QApplication, despite being written elsewhere to support both widget- and non-widget builds. This prevents qmlscene from building if the QtWidgets module is unavailable.

      Switching to QCoreApplication::installTranslator() should be a sufficient fix.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            andrew.knight Andrew Knight
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes