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

Crash when disabling RTTI in our projects (CMake or QMake) and using official Windows binaries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.6.0
    • Core: Object Model
    • None
    • Windows

    Description

      Hi,

      I wanted to test Qt 6.6 with a CMake project I created some years ago. In this project, I disabled RTTI (with /GR- for Visual C++ 2022) because Qt is not using it. As soon as I try to display a dialog, I get a crash in Qt Core on a dynamic_cast. This line is enclosed in a check for RTTI. Since Qt 6.6 seems to be built with RTTI enabled and my code is built with RTTI disabled, it throws an exception.

      As temporary fix, I reenabled the RTTI in my project.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            kervala Cédric OCHS
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes