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

Qt Creator crashes when using 'create getter/setter'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 13.0.0
    • None
    • Qt 5.15.16
      QtCreator 13.0.0
      Win10 64-Bit 22H2
    • Windows

      If I try to create a setter using [right-click]>[Refactoring]>[Create Getter/setter] and select two variables to create setters for the Qt Creator crashes on selection of the second variable for which a setter should be created.

       

      Let's assume the following class structure in the header:

      class Foo: public QObject
      {
          Q_OBJECT
      public: 
          ....
      signals:
          ....
      public slots:
          ....
      protected:
          QString m_host;
          quint16 m_port;
      private:
          ....
      }

      Selecting the first is fine:

      On selection of the second setter for m_port the Qt Creator closes/crashes.

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

            kandeler Christian Kandeler
            jahn-hendrik.kraemer Jahn-Hendrik Krämer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes