Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Automatic Objectname update [SOLVED]

    General and Desktop
    3
    5
    1032
    Loading More Posts
    • 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
      alealv last edited by

      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 Reply Quote 0
      • A
        andreyc last edited by

        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 Reply Quote 0
        • A
          alealv last edited by

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

          1 Reply Last reply Reply Quote 0
          • A
            andreyc last edited by

            You are welcome.

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

            1 Reply Last reply Reply Quote 0
            • S
              Sam last edited by

              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 Reply Quote 0
              • First post
                Last post