Results 1 to 2 of 2

Thread: How do I fix this?

  1. #1

    Default Re: How do I fix this?

    I would like to change the naming convention of my UI's.
    So I renamed the source files and manualy edited all the class names.

    Example: class SettingsWindow -> class SettingsDialog

    The project compiles fine untill I do a clean, then I have to fix all the class names again (everytime)!!
    And it only the UI header that revert back to the previous name.

    How do I fix it such that the UI header will stick to the new class names?

    Thank you


    Added after 4 minutes:


    Ok, I had to change the name of the dialog object in the object inspector.
    Last edited by bluscape; 9th June 2016 at 21:03.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How do I fix this?

    Ok, I had to change the name of the dialog object in the object inspector.
    That's one way to do it. Since the .ui files are just ASCII XML files, you can also open them in a text editor and change the names there instead. That's all that Qt Designer is doing - it's a fancy graphical editor whose input and output is an ASCII XML .ui file.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

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.