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. QFileInfo::absolutePath: Constructed with empty filename

QFileInfo::absolutePath: Constructed with empty filename

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.8k 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
    JPproj
    wrote on last edited by
    #1

    Hi. I'm somewhat of a qt newbie. I have created my GUI, exported to a ui file, and converted that to a C++ header file with uic. I also created my main.cpp file and class constructor, etc. I ran the folloiwng command to generate the makefiles and received the subsequent error message:

    @> qmake -project
    QFileInfo::absolutePath: Constructed with empty filename@

    This looks like a QT bug that was documented in 2010, but it doesn't seem to be fixed. Does anyone know the workaround? How do I generate the makefiles for my QT app, which I first created in designer-qt4?

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

      Hi, if you want to generate makefiles based on xxx.pro file, you should run

      @
      qmake
      @

      instead of

      @
      qmake -project
      @

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

        Hi. Thanks. I wasn't using a .pro file. I don't know how. But I ugraded my QT version from 4.6.2 to 4.7.4 and the problem went away.

        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