
Setting the Application Icon on Windows
First, create an ICO format bitmap file that contains the icon
image. This can be done with e.g. Microsoft Visual C++: Select
File|New, then select the File tab in the dialog that appears, and
choose Icon. (Note that you do not need to load your application
into Visual C++here we are only using the icon editor.)
Store the ICO file in your application’s source code directory,
for example, with the name myappico.ico. Then, create a text file
called, say, myapp.rc in which you put a single line of text:IDI_ICON1ICON
DISCARDABLE
"myappico.ico"Finally, assuming you are using qmake to generate
your makefiles, add this line to your myapp.pro file:
RC_FILE = myapp.rcRegenerate your makefile and your application.
The .exe file will now be represented with your icon inExplorer.
If you do not use qmake, the necessary steps are: first, run the
rc program on the .rc file, then link your application with the
resulting .res file.
*** 作如下:首先准备个ICO图标。例如:myappico.ico
用记事本新建个文件,里面就写一行:
IDI_ICON1 ICON DISCARDABLE “myappico.ico”
保存改名为 myapp.rc并把它和你的图标myappico.ico一起复制到你的QT工程项目的目录。
用记事本打开你的QT工程文件(如 “myapp.pro” ),在里面最后新添一行
保存,编译你的工程,成功了吧。
Profile是针对每个帐户的数据存储,比如一个电子商务网站的用户购物车数据。“用户配置文件”是Profile这个词的直接翻译,其实没有文件的意思,默认存储在数据库中,不用自己管理文件。
Profile是HttpContext类的一个属性,是ProfileBase类,继承自SettingsBase类。
所谓Provider,是你可以定义Profile如何存储,默认是存储在LocalServer数据库中,需要网站重启动不丢失数据,所以不能存在内存中。
web.config中必须的Profile属性:什么叫必须?你如果不修改默认存储,只有每个Profile的name是必须的,如:
<profile defaultProvider="SqlProvider">//修改存储才需要
<providers>
<clear />
<add name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlServices"
applicationName="SampleApplication"
description="SqlProfileProvider for SampleApplication" />
</providers>
<properties>
<add name="ZipCode" />//用户配置的项目才是必须的
<add name="CityAndState" />
</properties>
</profile>
</system.web>
tar zxvf qt-everywhere-opensource-src-4.8.4.tar.gz进入解压后文件目录,执行配置
root@emouse:~/study# cd qt-everywhere-opensource-src-4.8.4/
root@emouse:~/study/qt-everywhere-opensource-src-4.8.4# ./configure
修改配置文件
if [ -z "$QT_INSTALL_PREFIX" ]then
if [ "$CFG_DEV" = "yes" ]then
QT_INSTALL_PREFIX="$outpath" # In Development, we use sandboxed builds by default
elif [ "$PLATFORM_QWS" = "yes" -o "$PLATFORM_QPA" = "yes" ]then
if [ "$PLATFORM_QPA" = "yes" ]then
QT_INSTALL_PREFIX="/usr/local/Trolltech/QtLighthouse-${QT_VERSION}"
else
QT_INSTALL_PREFIX="/usr/local/Trolltech/QtEmbedded-${QT_VERSION}"
fi
if [ "$PLATFORM" != "$XPLATFORM" ]then
QT_INSTALL_PREFIX="${QT_INSTALL_PREFIX}-${CFG_ARCH}"
fi
elif [ -d "$EPOCROOT" ] &&[ "$XPLATFORM_SYMBIAN" = "yes" ]then
if [ "$XPLATFORM_SYMBIAN" = "yes" ]then
QT_INSTALL_PREFIX="$EPOCROOT/epoc32/"
QT_INSTALL_LIBS="$EPOCROOT/epoc32/release/armv5/lib/"
fi
else
QT_INSTALL_PREFIX="/usr/local/Trolltech/Qt-${QT_VERSION}"
ok
启动
/usr/local/Trolltech/Qt-4.8.4/bin/designer
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)