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. Include UI header file before it was generated
Forum Updated to NodeBB v4.3 + New Features

Include UI header file before it was generated

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.6k 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.
  • F Offline
    F Offline
    frankiefrank
    wrote on last edited by
    #1

    I'm moving from Visual Studio (2008) to Qt Creator 2.7.2 and I'm a bit confused on the subject of referencing generated UI / form files.

    Let's say I have a monkey.ui file In my visual studio project, I knew that there will be a generated file called ui_monkey.h in "./generatedfiles" so I included that header file so that I could create a UI::MonkeyClass member in my monkey.cpp file. This worked fine for me in visual studio.

    However now in Qt Creator I get the error saying that I cannot include the "ui_monkey.h" since it doesn't exist. I understand it won't exist till the form files are processed and the files are generated. But how should I write this so it compiles and works?

    And if there's a chance I'm really off here, feel free to point me to the right direction!

    Thank you!

    "Roads? Where we're going, we don't need roads."

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

      Hi, seems something wrong with your .pro file.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        frankiefrank
        wrote on last edited by
        #3

        You're right. I'm not sure what I did wrong, or what I did right, but I cleaned up and tried again and it worked.

        "Roads? Where we're going, we don't need roads."

        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