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

QGuiApplication::primaryScreenChanged not connecting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.6.1
    • Core: Object Model
    • None
    • Windows 7 64bit, MSVC 2013

    Description

      The code like

      QGuiApplication* guiApp = dynamic_cast<QGuiApplication*>(qApp);
      connect(guiApp, SIGNAL(primaryScreenChanged(QScreen *screen)), this, SLOT(OnScreenChanged(QScreen *)));

      causes following output of runtime:

      QObject::connect: No such signal QApplication::primaryScreenChanged(QScreen *screen)

      however qApp is casted explicitely to QGuiApplication

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            ars.masiuk Ars Masiuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes