Results 1 to 5 of 5

Thread: Visual Studio 2015 not updating UI files

  1. #1
    Join Date
    Aug 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Visual Studio 2015 not updating UI files

    Hi,
    I am new to QT, but one thing makes me problem. I use QT5 in Visual Studio 2015, and after every change to ".ui" files intellisense does not realize new or deleted controls made in qt creator. Intellisense realizes changes only after many times of project rebuild, which in huge projects may take a long time to go.
    I would be glad, if someone could make help me to overcome this issue with Visual Studio 2015.
    p.s. on internet I found this discussion to my issue, but did not help me anymore
    http://stackoverflow.com/questions/8...-visual-studio
    You to have the header updated then you can run uic manually or possibly via some menu option provided by the Qt VS Integration. - but where can I found uic.exe, or how can I force it to run?

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Visual Studio 2015 not updating UI files

    I don't use Windows, but it sounds like Visual Studio isn't recognizing the change to the ui file and it's not running qmake. Have you tried manually running qmake after you've changed the ui file?
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

  3. #3
    Join Date
    Aug 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Visual Studio 2015 not updating UI files

    Thanks jefftee please where could I find qmake? I do not see it in qmake menu in Visual Studio.
    My problem is primary that intellisense do not see changes – probably .h and all related files to .ui file do not get refreshed. But although intellisense do not see new/ deleted elements (e.g. button) after rebuild program GUI is updated, but intellisense not.

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Visual Studio 2015 not updating UI files

    Visual Studio don't use qmake. I have a very bad experience with intellisense version from 2005 to 2015 - can live with that.

  5. #5
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Visual Studio 2015 not updating UI files

    Quote Originally Posted by pcrewik View Post
    Thanks jefftee please where could I find qmake? I do not see it in qmake menu in Visual Studio.
    Sorry, I don't do windows so I can't help you with Visual Studio. The qmake binary is a key component of building/managing Qt projects. I would recommend you switch to Qt Creator where it's all integrated.
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

Similar Threads

  1. Qt Debug Error on MS Visual Studio 2015
    By wiatrak11 in forum Installation and Deployment
    Replies: 0
    Last Post: 6th April 2016, 16:03
  2. Qt 5.6beta + Visual Studio 2015
    By thru in forum Newbie
    Replies: 5
    Last Post: 1st January 2016, 20:34
  3. Qt 4.4.1 and Visual Studio 2015
    By Arthur in forum Installation and Deployment
    Replies: 1
    Last Post: 7th April 2015, 09:06
  4. Replies: 1
    Last Post: 15th August 2011, 23:26
  5. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 21:05

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.