Results 1 to 4 of 4

Thread: Change class name in QtCreator

  1. #1
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Change class name in QtCreator

    Hi
    Imagine i create a Qt Designer Form Class called Dialog.
    After doing all the coding e realise i want to change the name to myDialog.
    Is there a way to do it without changing it manualy, including filenames?

    By the way ... Happy new year

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Change class name in QtCreator

    Hi,

    not entirely.

    - cursor on the class name, then press Strg + R to rename the class (this is far better then a simple search and replace)
    - If you have an UI file, you have to change the name manually.
    - and then you have to change the fine name too.

    Damn, that is a lot of work! Could you open a ticket on the bugtracker about it (if not exist already) and post the number here. I'll put that an my watch list and have a look at it when I can spend some time.

    Best
    Lykurg

  3. The following user says thank you to Lykurg for this useful post:

    graciano (2nd January 2014)

  4. #3
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Change class name in QtCreator

    I followed your sugestion Lykurg.
    https://bugreports.qt-project.org/br...EATORBUG-11191
    I think i missfiled the components field!

  5. #4
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Change class name in QtCreator

    https://bugreports.qt-project.org/br...EATORBUG-11191

    People keep telling me other ways to do it!

    Is that immoral to be lazy

Similar Threads

  1. Qt Creator QtCreator 2.3 can not change the right mkspec?
    By ibingow in forum Qt Tools
    Replies: 0
    Last Post: 13th September 2011, 17:46
  2. QtCreator change in lib should force a link
    By Braunstein in forum Qt Tools
    Replies: 1
    Last Post: 19th March 2010, 20:27
  3. Replies: 11
    Last Post: 14th March 2010, 22:00
  4. Replies: 6
    Last Post: 22nd May 2009, 11:15
  5. Change base class
    By villy in forum Qt Tools
    Replies: 2
    Last Post: 20th September 2006, 11:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.