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. how can I create a "ui_" file manually?

how can I create a "ui_" file manually?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 753 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.
  • P Offline
    P Offline
    Princein
    wrote on last edited by
    #1

    I developed a Mac qt project,in my project,there is a ui file named 'canon.ui',after I build it, I get a 'ui_ canon.h' file in my project directory,I change some element in the 'canon.ui' file, but the 'ui_ canon.h' file does not change at all, so I delete the 'ui_ canon.h' in my project directory for get newst 'ui_ canon.h' file,but when I run the project again,it show me error:can't find the 'ui_ canon.h' file,I have try some methods:
    1.'Run qmake' in my project,but it not work;

    now, I want add the 'ui_ canon.h' file to my project to fix the error,what should I do?
    thanks a lot!

    aha_1980A 1 Reply Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      Hi @Princein ,
      try this :
      close the project,
      delete build folder
      delete project.pro.user re-open .pro with qt creator
      qmake

      P 1 Reply Last reply
      3
      • P Princein

        I developed a Mac qt project,in my project,there is a ui file named 'canon.ui',after I build it, I get a 'ui_ canon.h' file in my project directory,I change some element in the 'canon.ui' file, but the 'ui_ canon.h' file does not change at all, so I delete the 'ui_ canon.h' in my project directory for get newst 'ui_ canon.h' file,but when I run the project again,it show me error:can't find the 'ui_ canon.h' file,I have try some methods:
        1.'Run qmake' in my project,but it not work;

        now, I want add the 'ui_ canon.h' file to my project to fix the error,what should I do?
        thanks a lot!

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Princein said in how can I create a "ui_" file manually?:

        now, I want add the 'ui_ canon.h' file to my project to fix the error,

        No, don't do that. Generated files don't belong to the project nor under version control.

        In addition to @LeLev's suggestions: Do you use shadow building?

        Qt has to stay free or it will die.

        P 1 Reply Last reply
        4
        • ODБOïO ODБOï

          Hi @Princein ,
          try this :
          close the project,
          delete build folder
          delete project.pro.user re-open .pro with qt creator
          qmake

          P Offline
          P Offline
          Princein
          wrote on last edited by
          #4

          @LeLev
          thanks for your help!

          1 Reply Last reply
          0
          • aha_1980A aha_1980

            @Princein said in how can I create a "ui_" file manually?:

            now, I want add the 'ui_ canon.h' file to my project to fix the error,

            No, don't do that. Generated files don't belong to the project nor under version control.

            In addition to @LeLev's suggestions: Do you use shadow building?

            P Offline
            P Offline
            Princein
            wrote on last edited by
            #5

            @aha_1980
            yes!thanks for your reply!

            1 Reply Last reply
            0

            • Login

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