Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator auto implement methods
Qt 6.11 is out! See what's new in the release blog

QtCreator auto implement methods

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 6 Posters 18.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zbenjamin
    wrote on last edited by
    #1

    Wouldn't it be nice if Qt Creator could auto implement methods? Like you write the C++ header file and creator auto creates
    the method stubs in the cpp file for you?

    Also maybe right-klicking on a member var and selecting "Make Property" would be cool, or implement getters and setters
    like eclipse does.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jorj
      wrote on last edited by
      #2

      YES! more code automation features is a great idea!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sabrog
        wrote on last edited by
        #3

        I like this idea, but need add choice where create implementation:

        • in .cpp (default)
        • in header, below definition
        • in header, but outside definition class (like in QWidget inline methods)

        I agree about Q_PROPERTY, this will be helpfull just click on member of class and auto-create name, setter and getter with default implementation like this:

        @
        Q_PROPERTY(int myVariable READ myVariable WRITE setMyVariable)
        ...
        int myVariable() const {return m_myVariable;}
        void setMyVariable(int myVariable) {m_myVariable = myVariable;}
        ...
        int m_myVariable;
        @

        QT - Apple QuickTime
        Qt - Nokia's Qt Development Frameworks
        Apple is a competitor of Nokia, so QT != Qt

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kkrzewniak
          wrote on last edited by
          #4

          This kind of functionality could prove to be grate help indeed.

          Me, Grimlock, not "nice dino". ME BASH BRAINS!

          1 Reply Last reply
          0
          • T Offline
            T Offline
            troubalex
            wrote on last edited by
            #5

            Can someone draft a real feature request on this topic or - even better! - file it directly into JIRA for the devs to see? Thanks! :)

            THE CAKE IS A LIE
            Web Community Manager - Qt Development Frameworks

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sabrog
              wrote on last edited by
              #6

              It's "here":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1532

              QT - Apple QuickTime
              Qt - Nokia's Qt Development Frameworks
              Apple is a competitor of Nokia, so QT != Qt

              1 Reply Last reply
              0
              • T Offline
                T Offline
                troubalex
                wrote on last edited by
                #7

                Top! :)

                THE CAKE IS A LIE
                Web Community Manager - Qt Development Frameworks

                1 Reply Last reply
                0
                • U Offline
                  U Offline
                  ucomesdag
                  wrote on last edited by
                  #8

                  Cool would be a time safer!

                  Write “Qt”, not “QT” (QuickTime).

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved