Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt qmake does not generate ui header files
Qt 6.11 is out! See what's new in the release blog

Qt qmake does not generate ui header files

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 7.0k 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.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    Hi , this seams to be old problem of my , i never could generate automatically the ui headers file via qmake
    i always need to run the command :
    @ uic file.ui -o ui_file.h @

    the funny part that in visual studio under the Generated Files dir in the project tree i do see the names of the files
    that "supposed" to be generated but there are none on disk.
    this is how my qmake looks like :
    @win32:LIBS += ws2_32.lib
    QMAKE_LIBS_NETWORK = -lws2_32
    TARGET = MyApp
    QT += network webkit xml sql
    win32 {
    DEFINES +=_CRT_SECURE_NO_WARNINGS
    }
    include(qtsingleapplication/qtsingleapplication.pri)
    HEADERS+= MainWindow.h
    UT.h
    Log.h

    SOURCES+= main.cpp
    MainWindow.cpp
    UT.cpp

    FORMS+=mainwindow.ui
    config.ui

    Tell Qt Linguist that we use UTF-8 strings in our sources

    CODECFORTR = UTF-8
    CODECFORSRC = UTF-8@

    what im doing wrong here ?
    im using the latest Qt version , visual studio express 2008 on windows 7 32bit

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      you can check your folder with the result exe file.

      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