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 to generate moc files in Qt 5.9.1?

How to generate moc files in Qt 5.9.1?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.5k 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.
  • U Offline
    U Offline
    User002
    wrote on last edited by aha_1980
    #1

    Hi,
    I am trying to generate moc files in Qt 5.9.1 by adding new .ui file to the project but its not generating.

    jsulmJ 1 Reply Last reply
    0
    • U User002

      Hi,
      I am trying to generate moc files in Qt 5.9.1 by adding new .ui file to the project but its not generating.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @User002 How are you adding those ui files? Is it a qmake project? You need provide more information if you want to get help from others.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      U 1 Reply Last reply
      0
      • jsulmJ jsulm

        @User002 How are you adding those ui files? Is it a qmake project? You need provide more information if you want to get help from others.

        U Offline
        U Offline
        User002
        wrote on last edited by
        #3

        @jsulm By adding as new ui file in form file section

        jsulmJ 1 Reply Last reply
        0
        • U User002

          @jsulm By adding as new ui file in form file section

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @User002 What about my second question?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          U 1 Reply Last reply
          0
          • U Offline
            U Offline
            User002
            wrote on last edited by
            #5

            Hi, not using qmake project.. I Created new Qt project in Visual studio 2013 and adding required ui files and generating. But moc files are not generating.

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @User002 What about my second question?

              U Offline
              U Offline
              User002
              wrote on last edited by
              #6

              @jsulm Hi, not using qmake project.. I Created new Qt project in Visual studio 2013 and adding required ui files and generating. But moc files are not generating.

              jsulmJ 1 Reply Last reply
              0
              • U User002

                @jsulm Hi, not using qmake project.. I Created new Qt project in Visual studio 2013 and adding required ui files and generating. But moc files are not generating.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @User002 Then I don't know - never used Qt with Visual Studio. Maybe somebody else has a solution.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  marcbf
                  wrote on last edited by
                  #8

                  Are you using the Qt Visual Studio add-in? If you are, try reinstalling it. Otherwise you should install it. After that remove, then readd the .ui file(s).

                  VS doesn't know by itself what a .ui file is, so it needs a custom build step. That is where the Qt Visual Studio add-in comes in.

                  By the way, MOC is for program code (signal/slots etc.). For .ui files UIC is used. And RCC handles Qt resource files.

                  1 Reply Last reply
                  2

                  • Login

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