Results 1 to 3 of 3

Thread: Changing name of a Widget/Dialog (Designer form with Class)

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Changing name of a Widget/Dialog (Designer form with Class)

    Hi,
    In QtCreator you can easily change name of a class by refactor option, but the problem arise when there is an ui file with your class (Designer form with class). I've never done that easily!! It seems that refactoring option in Creator is not working properly in this case. So exactly except .h and .cpp files where are other places which i have to change the class name???
    Thanks

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,316
    Thanks
    314
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Changing name of a Widget/Dialog (Designer form with Class)

    Only the .ui file (and of course, any other .cpp or .h files that use your widget). You can either open the ui file in Qt Designer and change it there, or edit the file manually in a text editor.

    After you do that, be sure to delete the old moc_*.cpp files and do a clean rebuild of your project.

  3. #3
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Changing name of a Widget/Dialog (Designer form with Class)

    oK will try that

Similar Threads

  1. Replies: 0
    Last Post: 19th September 2011, 16:10
  2. Replies: 7
    Last Post: 18th August 2011, 14:43
  3. Access form's widget's in other class
    By p3c0 in forum Newbie
    Replies: 3
    Last Post: 12th June 2010, 14:20
  4. TreeView used in Qt Designer New Form dialog?
    By Bitruder in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2009, 21:40
  5. Replies: 0
    Last Post: 3rd January 2009, 05: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
  •  
Qt is a trademark of The Qt Company.