Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Automatic Objectname update [SOLVED]
Forum Update on Monday, May 27th 2025

Automatic Objectname update [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.4k Views
  • 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.
  • A Offline
    A Offline
    alealv
    wrote on 7 Jul 2014, 22:46 last edited by
    #1

    Hi,

    I was wondering if the Qt Editor has an automatic way to update object name when you change it in the UI editor. Because it's a bit annoying having to check all the places where I'm using that name and change it.

    Also, i wannted to know if there is a shortcut or also an automatic way to generate a definition of a function, after writing it's declaration on the header file.

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on 7 Jul 2014, 22:57 last edited by
      #2

      Welcome to DevNet

      1. In QtCreator you can change the strings by right click on a directory name in a Projects panel in select "Find in this directory" enter your search string and clock "Search & Replace" button.
        If you need to change a variable or class name then Ctrl+Shift+R should do it.

      2. Put cursor on a new function declaration and press Alt+Enter select "Add definition in "

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alealv
        wrote on 7 Jul 2014, 23:17 last edited by
        #3

        Thank you very much andreyc, that is very usefull!!

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on 7 Jul 2014, 23:21 last edited by
          #4

          You are welcome.

          Please add [SOLVED] to the title of your message if you consider it is solved.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sam
            wrote on 8 Jul 2014, 06:30 last edited by
            #5

            In Addition to that , If you have member variables , then put the cursor on the member area and press Alt + Enter , it will automatically generate getter() and setter() functions.

            !http://i58.tinypic.com/351955w.png(image)!

            Happy Coding !

            1 Reply Last reply
            0

            3/5

            7 Jul 2014, 23:17

            • Login

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