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

When trying to get a reading from a sensor before it starts it will cause a crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 5.2.0
    • 5.1.0 Beta 1
    • Sensors
    • None

    Description

      When trying to get a reading from a sensor before it starts it will cause a crash. Something like:

      int main(int argc, char **argv)
      {
          QApplication a(argc, argv);
          QRotationSensor rs;
          rs.reading()->x();
          return 0;
      }
      

      will crash as start() is not called.

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes