Results 1 to 3 of 3

Thread: "No such file or directory" error from deleted promoted widgets

  1. #1
    Join Date
    May 2013
    Posts
    35
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default "No such file or directory" error from deleted promoted widgets

    Ok, this is an error I have encountered before and I don't reall yknow how I've cleared it in the past.

    I'm using Qt Creator 2.8.0 with Qt 4.8.4 (CMake) on an OS project I've forked from github. While most of the project's various UIs depend upon Qt, everything to this point has been built in code - no use of designer, no *.pro files.

    Recently, a contributor created a *.ui file for a new dialog. I've been trying to make changes and ended up renaming some header files / directories which were refreenced as promoted widgets in Qt designer.

    I made the changes to the files witohut realizing they were promoted widgets. Once I caught it, I added the new locations in the "Promoted widgets" dialog in designer and deleted the old ones. There is no dependency on the old header file locations whatsoever. Yet, when the ui_.h file is generated, it still references the old locations and completely ignores the new references. The .ui file indicates only the new locations and everythin glooks right in Qt Designer.

    It seems like this might be a cache problem. I've cleaned / rebuilt everything several times, deleted my cmake cache text file from the build directory, and even deleted the build directory iteslf, but still no luck.

    Any thoughts?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: "No such file or directory" error from deleted promoted widgets

    What is reporting "No such file or directory"? Cmake, moc, UI compiler, RCC, compiler, linker, at run time?
    What file or directory?
    It really helps to actually describe the problem.

    If you manually run:
    Qt Code:
    1. uic thingy.ui
    To copy to clipboard, switch view to plain text mode 
    and the output is correct then the problem is where the ui_*.h generated files are going or the timestamps on the files are broken and make does not rebuild them.
    Delete all the ui_*.h files, rebuild and inspect the files.

  3. The following user says thank you to ChrisW67 for this useful post:

    graffy (20th September 2013)

  4. #3
    Join Date
    May 2013
    Posts
    35
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: "No such file or directory" error from deleted promoted widgets [Solved]

    Hmmm.. Loading the .ui file in a text editor made the difference. I changed the references there and everything compiled... Wonder why Designer didn't update it?

Similar Threads

  1. Replies: 12
    Last Post: 19th August 2015, 19:50
  2. Replies: 5
    Last Post: 10th April 2013, 12:20
  3. Replies: 4
    Last Post: 26th July 2010, 08:02
  4. Replies: 1
    Last Post: 23rd June 2010, 07:03
  5. Replies: 9
    Last Post: 20th May 2010, 10:55

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.