Results 1 to 5 of 5

Thread: Uic cannot write output file

  1. #1
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Uic cannot write output file

    I have visual studio 2005 with sp1 and installed Qt Visual Studio Integration 1.2.2.
    Whenever i add or change an element in the integrated Designer i get the attached message.
    I am working as administrator and the directory has write permissions.
    How can i avoid this message?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Uic cannot write output file

    You probably have the file opened elsewhere (like in Visual Studio). Windows uses mandatory file locks which prevents other applications (like Designer) from overwriting them.

  3. #3
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Uic cannot write output file

    I have closed all tabs in VS 2005. Than i have closed VS and restarted it. When i open the AnalyseForm.ui and modify something i get the message again if open another file (like .h or .ui).
    There is no other program that has access to the file (checked with processexplorer).

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Uic cannot write output file

    What about when using Designer? Do you get any error?
    Have you checked the permissions on that folder?

  5. #5
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Uic cannot write output file

    Hi,
    you have to check the properties for that file in visual studio. Look at the path where the file is supposed to be. Most likely you don't have that directory and file. I think it is something with the integration. When you make a new form, the ui_file.h isn't made automatically. You can make that file(empty) in vs and save it where the properties say it is supposed to be. Then it should be fine.

    Another solution is to run uic to create the missing file in the specified directory.

    Hope it works fine for you.

    Chaimar

Similar Threads

  1. qmake, uic and moc output folders
    By gri in forum Qt Programming
    Replies: 2
    Last Post: 30th March 2007, 18:55
  2. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10
  3. qt3 to qt4 - uic issue
    By hvengel in forum Qt Programming
    Replies: 10
    Last Post: 4th March 2007, 02:59
  4. Qt 3.3.4 -> Qt 4.1.2, moc file issue
    By philski in forum Qt Tools
    Replies: 1
    Last Post: 11th September 2006, 21:08
  5. Replies: 2
    Last Post: 11th July 2006, 14:19

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.