Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-1068

Add example code for the safety manual for creating safety app from the scratch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • QSR 1.2
    • QSR 1.2
    • Documentation
    • None
    • Iaf0700926125c8d31c8dbedd0c9c3471e0bfeedb

    Description

      The current version of the safety manual is a bit optimistic:

      https://doc-snapshots.qt.io/qtsaferenderer/qtsr-safety-project.html

      If user starts to create a safety application from the scratch, the safety manual needs some additional information in the page Enabling Qt Safe Renderer in Project

      See especially:

      https://doc-snapshots.qt.io/qtsaferenderer/qtsr-safety-project.html#building-the-qt-safe-renderer-project

      Build and Run would only work, if user has taken existing QSR example for the basis and modifies based on it.

      But for the totally new projects some things must be done before the build and run in the host environment

      1) The pro file should have the following info:

      # Host build we are using qt for the adaptation
      windows|linux|macos {
          DEFINES += QSR_HOST_BUILD
          QT += core gui
      }
      

      Otherwise it does not work. This is not needed in the target environments.

      2) And there should be example for the main.cpp file as well.

      See for example indicators example and its main.cpp file.

      3) And for the jump start it could be explicitly mentioned, that use the e.g. indicators example: https://doc-snapshots.qt.io/qtsaferenderer/qtsaferenderer-saferenderer-telltales-example.html

       

      Attachments

        For Gerrit Dashboard: QSR-1068
        # Subject Branch Project Status CR V

        Activity

          People

            tarjasundqvist Tarja Sundqvist
            assaarel Asmo Saarela (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes