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 see the generated code for QtCreator ?

How can i see the generated code for QtCreator ?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.9k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    Coderx
    wrote on last edited by
    #1

    Hello All.
    If i want to see the generated code from QtCreator , where should i go and what should i see?
    In Visual Studio and C# we would simply open the .designer.cs files and see everything.
    I wonder how it is possible in QtCreator
    Thanks in advance

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Hi, you can always open the generated files (ui_xxx.h, moc_xxx.h, xxx.moc, qrc_xxx.cpp, ...) with QtCreator just as you open normal c/c++ source files.

      These files generated by qt tools uic, moc and rcc.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Coderx
        wrote on last edited by
        #3

        [quote author="1+1=2" date="1373699929"]Hi, you can always open the generated files (ui_xxx.h, moc_xxx.h, xxx.moc, qrc_xxx.cpp, ...) with QtCreator just as you open normal c/c++ source files.

        These files generated by qt tools uic, moc and rcc.[/quote]
        Thanks but how can i see them through QtCreator itself ?
        I cant find those files in the project files hierarchy !

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          No you can't because they are generated in the shadow build folder.

          You can simply open an explorer in that folder and drag the files over QtCreator's window to open them

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Coderx
            wrote on last edited by
            #5

            Thanks alot .
            Excuse me if i sound dumb! But what is a shadow build folder?
            I checked the project directory and couldnt find any other files or folders expect those which are shown in the project hierarchy inside QtCreator!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The shadow build directory is simply a folder used to store the generated and compiled code so your project folder doesn't get polluted by them. Generally you can find them beside your project folder with a name like build-myproject-Qt_4_8_5

              You can find the folder in the project tab

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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