Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-7186

Debug helpers' qform__MyType() should apply to typedefs of MyType

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 2.4.1
    • Debugger
    • None
    • Linux 3.2.0-2-amd64 using the QtCreator from the QtSDK

    Description

      When writing a new Display Format for a given type using the debug helpers, we are obliged to write the qform__MyType() function for all the possible typedefs of the type.
      This is very unpractical in situations where your type is a templated class with lots of templates and typedefs are often used (e.g. when working with the Eigen library).

      In order to reproduce this problem, try both the qttypes.py that I attach below, with the sample project attached. Notice you will need the Eigen library installed.

      With "qttypes.py" where all the qform__MyTypedef() are present: when you debug the Gnuplot Display Format is available and working for VectorXf, MatrixXf,...

      With "qttypes_withouttypedefsqform.py" where all the qform__MyTypedef() are commented out: when you debug the Gnuplot Display Format is not available for VectorXf, MatrixXf,...

      Attachments

        1. main.cpp
          1 kB
          Ricard Marxer
        2. qttypes_withouttypedefsqform.py
          86 kB
          Ricard Marxer
        3. qttypes.py
          86 kB
          Ricard Marxer
        4. test_eigen.pro
          0.3 kB
          Ricard Marxer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            rikrd Ricard Marxer
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes