Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to get UI Header files without building everything? Nor without using a script that manually runs UIC. Apparently, there's a built-in way to do that.
Forum Updated to NodeBB v4.3 + New Features

How to get UI Header files without building everything? Nor without using a script that manually runs UIC. Apparently, there's a built-in way to do that.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 110 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.
  • K Offline
    K Offline
    karl-police
    wrote 21 days ago last edited by karl-police
    #1

    I made a script that would generate the UI Header files. However, I was told about that there's things like

    Core_autogen and etc. that generate the header files, without having to build everything!

    What I want are the ui_*.h files from the .ui files WITHOUT building.

    I don't want to build everytime I change something in a .ui file.

    Now the problem is, how do you do that???????????

    Like, I... don't get it. Like, I have to drill somewhere to find what I want to do.

    I am using ninja to build, idk. How do you make those .h without having to manually create a script for it. Like... WHAT DO YOU DO. It's like. I don't get it.

    You have created a system, that has stuff like qt_add_ui

    But the .h files are only available if you build the thing. But I don't want to build the thing just to get intellisense in Visual Studio IDE. So how can this be fixed.

    How do I make those _autogen targets appear.

     

    For every qt_add_ui it creates a target, but how do you just run all the header stuff at once, without building. I can't just make another separate CMake .txt file I think. It will error because it can't find the target thing to like combine it with, e.g. add_executable

    Like inside build.ninja you'll see a new target for every single .h file like...... WHY

     

    1 Reply Last reply
    0
    • A Online
      A Online
      Axel Spoerl
      Moderators
      wrote 20 days ago last edited by
      #2

      A slightly confusing and complicated way to ask:
      "How can I create a .h file from a .ui file manually?"

      The answer is:
      Use the uic executable as documented here.
      It's located in the libexec directory of your Qt installation.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      3

      2/2

      16 May 2025, 04:10

      • Login

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