Qt software version update auto check,when website have some change
-
- Use you Qt5 Qtcreator open the sample.pro
-
- Build it
-
- In the main.cpp file,change the follow funcation to change your local software version:
QApplication::setApplicationName("Sample");
QApplication::setApplicationVersion("2.0");
change the version .
-
- Edit you Appcast.xml file , most useful information are in
<enclosure
url="http://you.com/app/Your%20Great%20App%202.0%20Windows.zip"
fervor:version="2.0"
fervor:platform="Q_OS_WIN32"
length="1656492"
type="application/octet-stream" />
-
- Change you main.cpp file,following function:
FvUpdater::sharedUpdater()->SetFeedURL("http://www.xxx.com/Appcast.xml");
the software will compare the local software's version and the Server's Appcast.xml file.Your ReleaseNote also put inthe same path of your server.