Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Using uic files in headers
Forum Updated to NodeBB v4.3 + New Features

Using uic files in headers

Scheduled Pinned Locked Moved C++ Gurus
3 Posts 2 Posters 1.7k 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.
  • J Offline
    J Offline
    jfabiani
    wrote on last edited by
    #1

    Hi,
    First I'm a noob and I'm not sure I'm in the right forum - sorry if I'm wrong.

    I have reviewed several tutorials and I'm now attempting to compile xTuples 'openrpt'. In the code there are several places (in header files) that use files created from 'uic' i.e in login.h there is an include "#include "tmp/ui_login.h". When I run build it fails to find the file. The file exist and I don't understand why build fails on the file. That said the real question is:
    I see this as some sort of trick (at least not covered in my tutorials). A header file that uses "ui_filename.h" that does not exist until 'uic' is run. Is this a normal way to deal with UI files?

    BTW if you can help with the compile that would be great!
    Johnf

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Santosh Reddy
      wrote on last edited by
      #2

      ui_*.h files are generated by the uic (ui compiler), so they are created only when uic is run (generally as part of build process).

      ui files are included like "#include "ui_login.h". Why do use "tmp" in the ui path, as you sure the login.ui (ui disigner file) is in "tmp" folder?

      SS

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jfabiani
        wrote on last edited by
        #3

        Funny I was told that C++ was the wrong place to post and here I get a response.

        Anyway, I actually don't understand why it's setup with 'tmp' except to say that is where the file is located. That said, I don't understand any of the '.pro' files - in that they do NOT follow any of the tutorials I have been using.

        It's true that the xTuple folks are most likely experts but it seems that they have made the source overly complex (at least I don't see the reasoning behind the structure). I was able to compile by placing the complete path for the file.

        So I am moving forward - thanks for your help.

        Johnf

        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