<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

    
	<channel>

	<title>Qt DevNet forums: Chinese</title>
	<link>http://qt-project.org/forums/viewforum/39/</link>
	<description>RSS feed for latest threads in Chinese</description>
	<copyright>Copyright 2012 Qt Developer Network</copyright>
	<docs>http://www.rssboard.org/rss-specification</docs>
	<generator>ExpressionEngine v2.3.1 http://expressionengine.com/</generator>
	<lastBuildDate>Sat, 30 Jul 2011 13:33:53 GMT</lastBuildDate>
	<atom:link href="http://qt-project.org/feeds/forum/39" rel="self" type="application/rss+xml" />

    

	
        <item>
            <title>如何在Ubuntu的X&#45;window上跑QT？</title>
            <link>http://qt-project.org/forums/viewthread/17190</link>
            <author>uniquez</author>
            <description><![CDATA[遇到一个棘手的问题，情况如下：

	有一块TI DM8148的开发板，我将UBuntu移植到了这快板子上面，同时还带有X&#45;window，现在这块板子上就像一台电脑一样跑UBuntu系统（接了显示器，鼠标，键盘）。

	接着我需要将QT库移植到这个上面去，使QT程序可以跑在这个UBuntu的桌面上。我将交叉编译好的QT程序和QT库下载到板子上，在终端上运行，程序能跑起来，有程序相关的打印，就是没有窗口的输出。请问问题是出在哪里？是否我在X&#45;window下跑QT程序一定需要QVFB的支持？

	我的环境：
编译服务器的系统：UBuntu 11.04
交叉编译链：linux&#45;arm&#45;gnueabi&#45;g++
开发板的系统：Ubuntu 11.04（带X&#45;window） 
QT库版本：4.8.1

	configure配置参数：
./configure &#45;prefix /usr/local/Trolltech/Qt&#45;4.8.1 &#45;arm &#45;xplatform qws/linux&#45;arm&#45;gnueabi&#45;g++ &#45;embedded arm &#45;little&#45;endian &#45;release &#45;opensource &#45;fast &#45;no&#45;accessibility &#45;scripttools &#45;svg &#45;webkit &#45;shared &#45;javascript&#45;jit &#45;qt&#45;sql&#45;sqlite &#45;no&#45;qt3support &#45;no&#45;mmx &#45;no&#45;3dnow &#45;no&#45;sse &#45;no&#45;sse2 &#45;silent &#45;qt&#45;libpng &#45;qt&#45;libjpeg &#45;qt&#45;libtiff &#45;make libs &#45;nomake examples &#45;nomake docs &#45;nomake demo &#45;no&#45;nis &#45;no&#45;cups &#45;no&#45;iconv &#45;no&#45;dbus &#45;qt&#45;freetype &#45;armfpa &#45;qt&#45;gfx&#45;linuxfb &#45;qt&#45;gfx&#45;transformed &#45;qt&#45;gfx&#45;multiscreen &#45;no&#45;gfx&#45;vnc &#45;no&#45;gfx&#45;qvfb &#45;qt&#45;kbd&#45;linuxinput &#45;qt&#45;mouse&#45;linuxinput &#45;no&#45;glib 

	板子的环境变量：
export QTDIR=/home/qt
export LD_LIBRARY_PATH=/lib/qt&#45;lib
export QT_QWS_FONTDIR=/lib/qt&#45;lib/fonts
export QWS_DISPLAY=&#8220;LinuxFb:/dev/fb0&#8221;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17190</guid>
            <pubDate>Mon, 14 May 2012 08:53:37 GMT</pubDate>
        </item>
	
        <item>
            <title>有人对向Qt Labs China投稿感兴趣么？</title>
            <link>http://qt-project.org/forums/viewthread/17128</link>
            <author>Liang Qi</author>
            <description><![CDATA[详情见 http://labs.qt.nokia.com.cn/get&#45;involved/]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17128</guid>
            <pubDate>Fri, 11 May 2012 09:14:29 GMT</pubDate>
        </item>
	
        <item>
            <title>QT程序运行死机，需要显卡的DRI，DRM功能支持吗</title>
            <link>http://qt-project.org/forums/viewthread/17006</link>
            <author>exqtr</author>
            <description><![CDATA[我把QT程序移植到了kunlun linux(一个比较小的linux发行版)上，移植是成功了，但是一运行QT程序，Xorg的CPU占用率就到百分之百。看了一下系统的Xorg.0.log日志，DRI禁止了。原因是/dev/dri/card0文件不存在。
    我的问题是,QT程序需要得到DRI支持吗]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17006</guid>
            <pubDate>Tue, 08 May 2012 05:02:28 GMT</pubDate>
        </item>
	
        <item>
            <title>“定制QML扩展插件”载入失败？求指教</title>
            <link>http://qt-project.org/forums/viewthread/16941</link>
            <author>charles_yin</author>
            <description><![CDATA[我最近安装了Qt SDK 1.2.1 for windows，然后新建了一个定制QML扩展插件，把项目名，对象类名和URI都设为同一个名字，例如&#8220;Charles&#8220;。我用release方式生成，将生成的Charles.dll以及qmldir文件放在一个QtQuick UI项目下面，import进去，运行失败，出现如下输出：
Qml debugging is enabled. Only use this in a safe environment!
file:///E:/Desktop/QT/UI/UI.qml:4:1: plugin cannot be loaded for module &amp;quot;&amp;quot;: The plugin &apos;E:/Desktop/QT/UI/Charles.dll&apos; uses incompatible Qt library. Expected build key &amp;quot;Windows mingw debug full&#45;config&amp;quot;, got &amp;quot;Windows mingw release full&#45;config&amp;quot; 
&amp;nbsp; &amp;nbsp; &amp;nbsp;import &amp;quot;./&amp;quot; 


	qml file&#40;UI.qml&#41;:
import QtQuick 1.1
import &amp;quot;./&amp;quot;
Rectangle &#123;
&amp;nbsp; &amp;nbsp; width: 360
&amp;nbsp; &amp;nbsp; height: 360
&amp;nbsp; &amp;nbsp; Charles&#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id:logic
&amp;nbsp; &amp;nbsp; &#125;
&#125;


	看来qmlviewer已经发现这插件，但是没法载入。
后来我用debug方式生成了Charlesd.dll把它(以及对应的qmldir)放到UI项目里，这次qmlviewer能正常运行了，但是QtCreator的编辑器里面，qml文件里的Charles下面有红色波浪线，显示‘未知类型’。
难道编辑器只识别release生成的插件而qmlviewer识别debug生成的插件？有点小晕。。

	ps.我把creator调用的那个qmlviewer拷贝出来，发现它依赖的是QtCored4.dll这种后面带‘d’的，那这个qmlviewer是不是debug方式生成的啊？

	我已经纠结这个问题几天了，不知各位有没有什么好法子，先谢谢了~]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/16941</guid>
            <pubDate>Sat, 05 May 2012 05:12:37 GMT</pubDate>
        </item>
	
        <item>
            <title>[Solved] 对《C++ GUI Programming with Qt 4 (2nd Edition)》书上例子的疑惑</title>
            <link>http://qt-project.org/forums/viewthread/16760</link>
            <author>nimingzhe2008</author>
            <description><![CDATA[在这本书的第二章，给了一个例子
头文件finddialog.h
#ifndef FINDDIALOG_H
#define FINDDIALOG_H
&amp;nbsp;
#include &amp;lt;QDialog&amp;gt;
&amp;nbsp;
class QCheckBox;
class QLabel;
class QLineEdit;
class QPushButton;
&amp;nbsp;
class FindDialog : public QDialog
&#123;
&amp;nbsp; &amp;nbsp; Q_OBJECT
&amp;nbsp;
public:
&amp;nbsp; &amp;nbsp; FindDialog&#40;QWidget *parent = 0&#41;;
&amp;nbsp;
signals:
&amp;nbsp; &amp;nbsp; void findNext&#40;const QString &amp;amp;str, Qt::CaseSensitivity cs&#41;;
&amp;nbsp; &amp;nbsp; void findPrevious&#40;const QString &amp;amp;str, Qt::CaseSensitivity cs&#41;;
&amp;nbsp;
private slots:
&amp;nbsp; &amp;nbsp; void findClicked&#40;&#41;;
&amp;nbsp; &amp;nbsp; void enableFindButton&#40;const QString &amp;amp;text&#41;;
&amp;nbsp;
private:
&amp;nbsp; &amp;nbsp; QLabel *label;
&amp;nbsp; &amp;nbsp; QLineEdit *lineEdit;
&amp;nbsp; &amp;nbsp; QCheckBox *caseCheckBox;
&amp;nbsp; &amp;nbsp; QCheckBox *backwardCheckBox;
&amp;nbsp; &amp;nbsp; QPushButton *findButton;
&amp;nbsp; &amp;nbsp; QPushButton *closeButton;
&#125;;
&amp;nbsp;
#endif

finddialog.cpp的部分代码
#include &amp;lt;QtGui&amp;gt;
&amp;nbsp;
#include &amp;quot;finddialog.h&amp;quot;
&amp;nbsp;
FindDialog::FindDialog&#40;QWidget *parent&#41;//疑问一：parent由始至终没有使用
&amp;nbsp; &amp;nbsp; : QDialog&#40;parent&#41;
&#123;
&amp;nbsp; &amp;nbsp; label = new QLabel&#40;tr&#40;&amp;quot;Find &amp;amp;what:&amp;quot;&#41;&#41;;
&amp;nbsp; &amp;nbsp; lineEdit = new QLineEdit;
&amp;nbsp; &amp;nbsp; label&#45;&amp;gt;setBuddy&#40;lineEdit&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; caseCheckBox = new QCheckBox&#40;tr&#40;&amp;quot;Match &amp;amp;case&amp;quot;&#41;&#41;;
&amp;nbsp; &amp;nbsp; backwardCheckBox = new QCheckBox&#40;tr&#40;&amp;quot;Search &amp;amp;backward&amp;quot;&#41;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; findButton = new QPushButton&#40;tr&#40;&amp;quot;&amp;amp;Find&amp;quot;&#41;&#41;;
&amp;nbsp; &amp;nbsp; findButton&#45;&amp;gt;setDefault&#40;true&#41;;
&amp;nbsp; &amp;nbsp; findButton&#45;&amp;gt;setEnabled&#40;false&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; closeButton = new QPushButton&#40;tr&#40;&amp;quot;Close&amp;quot;&#41;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; connect&#40;lineEdit, SIGNAL&#40;textChanged&#40;const QString &amp;amp;&#41;&#41;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this, SLOT&#40;enableFindButton&#40;const QString &amp;amp;&#41;&#41;&#41;;
&amp;nbsp; &amp;nbsp; connect&#40;findButton, SIGNAL&#40;clicked&#40;&#41;&#41;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this, SLOT&#40;findClicked&#40;&#41;&#41;&#41;;
&amp;nbsp; &amp;nbsp; connect&#40;closeButton, SIGNAL&#40;clicked&#40;&#41;&#41;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this, SLOT&#40;close&#40;&#41;&#41;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; QHBoxLayout *topLeftLayout = new QHBoxLayout;
&amp;nbsp; &amp;nbsp; topLeftLayout&#45;&amp;gt;addWidget&#40;label&#41;;
&amp;nbsp; &amp;nbsp; topLeftLayout&#45;&amp;gt;addWidget&#40;lineEdit&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; QVBoxLayout *leftLayout = new QVBoxLayout;
&amp;nbsp; &amp;nbsp; leftLayout&#45;&amp;gt;addLayout&#40;topLeftLayout&#41;;
&amp;nbsp; &amp;nbsp; leftLayout&#45;&amp;gt;addWidget&#40;caseCheckBox&#41;;
&amp;nbsp; &amp;nbsp; leftLayout&#45;&amp;gt;addWidget&#40;backwardCheckBox&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; QVBoxLayout *rightLayout = new QVBoxLayout;
&amp;nbsp; &amp;nbsp; rightLayout&#45;&amp;gt;addWidget&#40;findButton&#41;;
&amp;nbsp; &amp;nbsp; rightLayout&#45;&amp;gt;addWidget&#40;closeButton&#41;;
&amp;nbsp; &amp;nbsp; rightLayout&#45;&amp;gt;addStretch&#40;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; QHBoxLayout *mainLayout = new QHBoxLayout;
&amp;nbsp; &amp;nbsp; mainLayout&#45;&amp;gt;addLayout&#40;leftLayout&#41;;
&amp;nbsp; &amp;nbsp; mainLayout&#45;&amp;gt;addLayout&#40;rightLayout&#41;;
&amp;nbsp; &amp;nbsp; setLayout&#40;mainLayout&#41;;//疑问2：为什么不是“对象.setLayout(mainLayout);”的形式
&amp;nbsp;
&amp;nbsp; &amp;nbsp; setWindowTitle&#40;tr&#40;&amp;quot;Find&amp;quot;&#41;&#41;;//疑问同上
&amp;nbsp; &amp;nbsp; setFixedHeight&#40;sizeHint&#40;&#41;.height&#40;&#41;&#41;;//疑问同上
&#125;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/16760</guid>
            <pubDate>Sun, 29 Apr 2012 16:48:51 GMT</pubDate>
        </item>
	
        <item>
            <title>编译qt4.8.1遇到错误</title>
            <link>http://qt-project.org/forums/viewthread/16201</link>
            <author>qtzzh</author>
            <description><![CDATA[我的系统是win 7 sp1 64 位家庭高级版，安装的是vc++ 2010 sp1学习版，也安装perl了，PATH也设定了。configure &#45;release &#45;qt&#45;zlib &#45;qt&#45;sql&#45;sqlite &#45;platform win32&#45;msvc2010通过，然后nmake的时候，进行了大概15分钟后，就出现了错误。
————————————————————————————————————————————
ThreadGlobalData.cpp
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war
ning C4005: “_HAS_TR1”: 宏重定义 命令行参数: 参见前面的“_HAS_TR1”定义
ThreadTimers.cpp
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war
ning C4005: “_HAS_TR1”: 宏重定义 命令行参数: 参见前面的“_HAS_TR1”定义
Timer.cpp
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war
ning C4005: “_HAS_TR1”: 宏重定义 命令行参数: 参见前面的“_HAS_TR1”定义
UUID.cpp
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war
ning C4005: “_HAS_TR1”: 宏重定义 命令行参数: 参见前面的“_HAS_TR1”定义
Widget.cpp
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war
ning C4005: “_HAS_TR1”: 宏重定义 命令行参数: 参见前面的“_HAS_TR1”定义
PlatformStrategies.cpp
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war
ning C4005: “_HAS_TR1”: 宏重定义 命令行参数: 参见前面的“_HAS_TR1”定义
LocalizedStrings.cpp
Cursor.cpp
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war
ning C4005: “_HAS_TR1”: 宏重定义 命令行参数: 参见前面的“_HAS_TR1”定义
D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war
ning C4005: “_HAS_TR1”: 宏重定义 命令行参数: 参见前面的“_HAS_TR1”定义
NMAKE : fatal error U1077: ““D:\Program Files (x86)\Microsoft Visual Studio 10.
0\VC\BIN\cl.EXE“”: 返回代码“0×2”
Stop.
NMAKE : fatal error U1077: ““D:\Program Files (x86)\Microsoft Visual Studio 10.
0\VC\BIN\nmake.exe“”: 返回代码“0×2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0×2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0×2”
Stop.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/16201</guid>
            <pubDate>Mon, 09 Apr 2012 13:49:56 GMT</pubDate>
        </item>
	
        <item>
            <title>qml在wince6.0上如何运行？</title>
            <link>http://qt-project.org/forums/viewthread/15785</link>
            <author>justzx</author>
            <description><![CDATA[在windows上，qml文件需要qmlviewer.exe来运行，在wince6下是否也需要qmlviewer.exe来运行qml文件？
1 已经尝试过将/bin/目录下的qmlviewer.exe和相应的dll文件放到wince6上，无法运行。
2 用declarative运行qml文件，在windows下可以正常运行，但是部署到wince6上时，无法运行。
大家有没有相关的开发经验，还请指导]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/15785</guid>
            <pubDate>Mon, 26 Mar 2012 10:37:43 GMT</pubDate>
        </item>
	
        <item>
            <title>如何在wince6上运行qml文件</title>
            <link>http://qt-project.org/forums/viewthread/15784</link>
            <author>justzx</author>
            <description><![CDATA[最近想把qml移植到wince6.0上，已经编译了ok6410的sdk,在windows上程序已经编译成功，sdk和工程编译按照这个帖子：http://xdlinux.info/wiki/index.php/Qt&#45;WinCE安装、开发及部署全解
    当把程序部署到wince6上时，无法运行，大家帮忙看看问题出在哪？]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/15784</guid>
            <pubDate>Mon, 26 Mar 2012 10:34:09 GMT</pubDate>
        </item>
	
        <item>
            <title>[提问] 如何正确使用Glow效果</title>
            <link>http://qt-project.org/forums/viewthread/15535</link>
            <author>Jianren Yin</author>
            <description><![CDATA[我想把http://labs.qt.nokia.com/2012/02/02/qt&#45;graphical&#45;effects&#45;in&#45;qt&#45;labs/的效果 应用到listView的高亮的item上去。也就是当符合某条件时，激活glow效果。写了一个测试例子，点击&#8220;Text&#8221; 时激活glow效果，但是没有效果，麻烦大家指点一下。代码如下：
import QtQuick 2.0
import QtGraphicalEffects 1.0
&amp;nbsp;
Rectangle &#123;
&amp;nbsp; &amp;nbsp; width: 200; height: 200
&amp;nbsp; &amp;nbsp; color: &amp;quot;black&amp;quot;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; Text &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: text
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.centerIn: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text: &amp;quot;Hello Qt!&amp;quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; font.pixelSize: 30
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; color: &amp;quot;white&amp;quot;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; /* : Work but not my expectation
&amp;nbsp;
&amp;nbsp; &amp;nbsp; Glow &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: text
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source: text
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; color: &amp;quot;red&amp;quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; radius: 10
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; samples: 20
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visible: true
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NumberAnimation on spread &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from: 0; to: 0.8; duration: 1000
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loops: NumberAnimation.Infinite
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; easing.type: Easing.InOutQuad
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; */
&amp;nbsp;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; Loader &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: loader
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; focus: true
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; MouseArea &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onClicked: &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log&#40;&amp;quot;Clicked&amp;quot;&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loader.sourceComponent = glowEffect
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; Component &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: glowEffect
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Glow &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; color: &amp;quot;red&amp;quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; radius: 10
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; samples: 20
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visible: true
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NumberAnimation on spread &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from: 0; to: 0.8; duration: 1000
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loops: NumberAnimation.Infinite
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; easing.type: Easing.InOutQuad
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &#125;
&#125;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/15535</guid>
            <pubDate>Mon, 19 Mar 2012 03:49:55 GMT</pubDate>
        </item>
	
        <item>
            <title>QTableView 和QSqlQueryModel：怎样是好</title>
            <link>http://qt-project.org/forums/viewthread/14617</link>
            <author>soleverlee</author>
            <description><![CDATA[我想做一个类似单击上的博客的东西，用来记录平常编程中遇到的一些知识，选择了Qt + Sqlite3架构；如图，点击左边的分类，在右边查询到与之相关的条目
http://img165.poco.cn/mypoco/myphoto/20120218/13/6469620420120218132904051.jpg
而采用Model&#45;View的这种结构，右边的QTableView通过一个QSqlQueryModel传递查询到的值。现在的问题是，如何在用户点击不同的分类，右边显示相应的值呢？我采取的是每点击一次分类，然后通过分类名新建一个QSqlQueryModel，然后设置TableView的model为它，行倒是行，但是后来一想，感觉这样不好。
//获取指定分类的条目
QSqlQueryModel* DbCtrl::GetItems(const QString &amp;amp;classify)
&#123;
    QSqlQueryModel* sqlModel = new QSqlQueryModel();
    if(classify == &#8220;全部&#8221;)
        sqlModel&#45;&amp;gt;setQuery(&#8220;SELECT id,title FROM tbarticle&#8221;, db);
    else
    &#123;
        QString str = &#8220;SELECT id,title FROM TbArticle WHERE classify = &#8216;&#8221; + classify + &#8220;&#8217;&#8221;;
        sqlModel&#45;&amp;gt;setQuery(str , db);
    &#125;
    sqlModel&#45;&amp;gt;setHeaderData(0, Qt::Horizontal, &#8220;标号&#8221;);
    sqlModel&#45;&amp;gt;setHeaderData(1, Qt::Horizontal, &#8220;标题&#8221;);
    return sqlModel;
&#125;
//点击分类列表:显示选择列表的条目
void AppMainWindow::on_listViewClassify_clicked(const QModelIndex &amp;amp;index)
&#123;
    QString classify = index.data().toString();
    if(classify.isEmpty())
        return;
    currentClassify = classify;
    QItemSelectionModel *m = ui&#45;&amp;gt;tableViewItems &#45;&amp;gt;selectionModel();
    ui&#45;&amp;gt;tableViewItems&#45;&amp;gt;setModel(dbctrl.GetItems(classify));
    delete m;
&#125;
而且，每次设置后，该不该delete掉前面的model呢？Qt帮助上没明说。
要么或者更新时，取出TableView的Model，然后重新设置SQL语句，然后在select（）刷新呢？
求帮助！！！]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/14617</guid>
            <pubDate>Sat, 18 Feb 2012 07:20:28 GMT</pubDate>
        </item>
	
        <item>
            <title>如何连接到一个成员从而看到他/她发表的所有贴子的更新？</title>
            <link>http://qt-project.org/forums/viewthread/13356</link>
            <author>qbjcnt</author>
            <description><![CDATA[在Qt Dev里经常可以看到一些经验丰富的成员写的很好的贴子，所以希望能连接到他/她，这样，如果他/她发表了新贴子后可以直接看到。不知道这个功能现在有没有？]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/13356</guid>
            <pubDate>Thu, 12 Jan 2012 04:00:50 GMT</pubDate>
        </item>
	
        <item>
            <title>Qt 4.8中文显示是不是有问题啊</title>
            <link>http://qt-project.org/forums/viewthread/12722</link>
            <author>tangming10000</author>
            <description><![CDATA[我用Qt4.8创建的控件，上面显示的中文全部重叠到一起去了，英文又显示正常，求解决啊！！！！]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/12722</guid>
            <pubDate>Wed, 21 Dec 2011 03:18:31 GMT</pubDate>
        </item>
	
        <item>
            <title>QT在fedora16下的安装问题</title>
            <link>http://qt-project.org/forums/viewthread/12429</link>
            <author>Chuanchuan</author>
            <description><![CDATA[在fedora16下安装QT时出现如下错误，求解决啊!
双击程序没有任何反应
在终端 ./Qt_SDK_Lin32_offline_v1_1_4_en.run 时
出现 Segmentation fault
确定运行权限是有的]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/12429</guid>
            <pubDate>Mon, 12 Dec 2011 14:14:56 GMT</pubDate>
        </item>
	
        <item>
            <title>关于qt站点导航和一些基本问题的请教，感谢！</title>
            <link>http://qt-project.org/forums/viewthread/12122</link>
            <author>rcyboom</author>
            <description><![CDATA[大家好，
现在qt变的更开放了，但是站点之间的导航更复杂了，在这里有一些疑问请教，请指点一下，谢谢先！
1、如何通过代码仓库获取所需版本的qt lib以及qt creator的源码，就是如何获取指定的分支？
2、nokia站点上的一些视频、labs中的文章、qt的季刊、还有一些教程可以通过rss订阅么？如何订阅？
3、qt.nokia和 qt&#45;project.org 之间是什么关系呢？
4、如果只是desktop应用的话，分别获取qt lib以及qt creator与直接下载 qt sdk v1.x有什么区别？
5【补充】由于我在线时间不长，大部分是线下时间，请问可以下载 http://qt.nokia.com/learning/online/training/specialized&#45;elearning/graphics&#45;view/graphics&#45;view&#45;using&#45;graphicsview&#45;classes 中的视频吗？如何下载？
都是一些基本的问题，希望哪位有空给科普一下啦，主要是在这些链接之间找东西都快逛晕了，但是进入页面往往只有qt.nokia和 qt&#45;project.org，感觉网站目录层次有些复杂。]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/12122</guid>
            <pubDate>Thu, 01 Dec 2011 14:56:47 GMT</pubDate>
        </item>
	
        <item>
            <title>Do you like PyQt/PySide?</title>
            <link>http://qt-project.org/forums/viewthread/11969</link>
            <author>flyinflash</author>
            <description><![CDATA[有没有同学是玩 PyQt/PySide 的？]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/11969</guid>
            <pubDate>Sat, 26 Nov 2011 07:45:59 GMT</pubDate>
        </item>
	

	</channel>
</rss>
