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.5k 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
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      YES! more code automation features is a great idea!

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        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;
        @

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            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! :)

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                Top! :)

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #8

                  Cool would be a time safer!

                  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