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

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

  <channel>

  
  <title>Qt DevNet forums: Qt in Education 1336506987**  </title>
  <link>http://qt-project.org/forums/viewforum/19/</link>
  <description>RSS feed for latest posts in Qt in Education</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>Tue, 08 May 2012 21:56:27 GMT</lastBuildDate>
  <atom:link href="http://qt-project.org/feeds/all_forums/19" rel="self" type="application/rss+xml" />
  
  
  
        <item>
            <title>I&apos;ve written at least 3 &quot;simple&quot; Qt apps I can email</title>
            <link>http://qt-project.org/forums/viewreply/86548</link>
            <author>cloudbuster</author>
            <description><![CDATA[I have barely avoided getting to be fluent in any or all of these
SELINUX ( and something else on the same order)
grub2
video/X11
audio
many others

	I am already spread too thin according to potential employers

	other careers
C# net4
Oracle (10+ careers)
C++
STL
SAX
usw
HOWEVER I may try it!]]></description>
            <guid isPermaLink="false">41140668898419e828f52af2197fb47e</guid>
            <pubDate>Wed, 23 May 2012 19:25:55 GMT</pubDate>
        </item>
  
        <item>
            <title>Qt OpenGL gltexture</title>
            <link>http://qt-project.org/forums/viewreply/85686</link>
            <author>XLeopard</author>
            <description><![CDATA[Attention:you must add glu.h or glut.h manually in you QtOpenGL file
I think one must understand though only core code related to texture is showed.

	#include &amp;lt;QtGui&amp;gt;
#include &amp;lt;QtOpenGL&amp;gt;
#include &amp;lt;glut.h&amp;gt;
&amp;nbsp;
void GLwidget::loadTextures&#40;&#41;
&#123;
&amp;nbsp;glEnable&#40;GL_TEXTURE_2D&#41;;
&amp;nbsp;QImage text&#91;3&#93;,buff&#91;3&#93;;
&amp;nbsp;if&#40;!buff&#91;0&#93;.load&#40;&amp;quot;./sun.bmp&amp;quot;&#41;
&amp;nbsp; ||!buff&#91;1&#93;.load&#40;&amp;quot;./earth.bmp&amp;quot;&#41;
&amp;nbsp; ||!buff&#91;2&#93;.load&#40;&amp;quot;./moon.bmp&amp;quot;&#41;&#41;&#123;
&amp;nbsp; &amp;nbsp;printf&#40;&amp;quot;Load Image failed!\n&amp;quot;&#41;;
&amp;nbsp;&#125;
&amp;nbsp;text&#91;0&#93; = QGLWidget::convertToGLFormat&#40;buff&#91;0&#93;&#41;;
&amp;nbsp;text&#91;1&#93; = QGLWidget::convertToGLFormat&#40;buff&#91;1&#93;&#41;;
&amp;nbsp;text&#91;2&#93; = QGLWidget::convertToGLFormat&#40;buff&#91;2&#93;&#41;;
&amp;nbsp;
&amp;nbsp;glGenTextures&#40;3,&amp;amp;texture&#91;0&#93;&#41;;
&amp;nbsp;
&amp;nbsp;glBindTexture&#40; GL_TEXTURE_2D, texture&#91;0&#93; &#41;;
&amp;nbsp;glTexParameteri&#40; GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR &#41;;
&amp;nbsp;glTexParameteri&#40; GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR &#41;;
&amp;nbsp;glTexImage2D&#40; GL_TEXTURE_2D, 0, 3, text&#91;0&#93;.width&#40;&#41;, text&#91;0&#93;.height&#40;&#41;, 0,
&amp;nbsp; GL_RGBA, GL_UNSIGNED_BYTE, text&#91;0&#93;.bits&#40;&#41; &#41;;
&amp;nbsp;
&amp;nbsp;glBindTexture&#40; GL_TEXTURE_2D, texture&#91;1&#93; &#41;;
&amp;nbsp;glTexParameteri&#40; GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR &#41;;
&amp;nbsp;glTexParameteri&#40; GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR &#41;;
&amp;nbsp;glTexImage2D&#40; GL_TEXTURE_2D, 0, 3, text&#91;1&#93;.width&#40;&#41;, text&#91;1&#93;.height&#40;&#41;, 0,
&amp;nbsp; GL_RGBA, GL_UNSIGNED_BYTE, text&#91;1&#93;.bits&#40;&#41; &#41;;
&amp;nbsp;
&amp;nbsp;glBindTexture&#40; GL_TEXTURE_2D, texture&#91;2&#93; &#41;;
&amp;nbsp;glTexParameteri&#40; GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR &#41;;
&amp;nbsp;glTexParameteri&#40; GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR &#41;;
&amp;nbsp;glTexImage2D&#40; GL_TEXTURE_2D, 0, 3, text&#91;2&#93;.width&#40;&#41;, text&#91;2&#93;.height&#40;&#41;, 0,
&amp;nbsp; GL_RGBA, GL_UNSIGNED_BYTE, text&#91;2&#93;.bits&#40;&#41; &#41;;
&#125;

void GLwidget::paintGL&#40;&#41;
&#123;GLUquadricObj *quadratic = gluNewQuadric&#40;&#41;;
glBindTexture&#40;GL_TEXTURE_2D, texture&#91;0&#93;&#41;; //the same with texture[1],[2] 
glPushMatrix&#40;&#41;;
gluSphere&#40;quadratic,sunRadius,100,100&#41;; &amp;nbsp;
glPopMatrix&#40;&#41;;
&#125;

void GLwidget::initializeGL&#40;&#41;&#123;
glTexGeni&#40;GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP&#41;;
glTexGeni&#40;GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP&#41;;
&#125;]]></description>
            <guid isPermaLink="false">998fea4ffbc8b03fe55f4b0b8992d0c2</guid>
            <pubDate>Mon, 14 May 2012 16:34:16 GMT</pubDate>
        </item>
  
        <item>
            <title>Qt3D errors</title>
            <link>http://qt-project.org/forums/viewthread/17162</link>
            <author>XLeopard</author>
            <description><![CDATA[I have installed Qt3d1.0 for Qt4.8.1. But when I lauched it, two errors exploded. 
1:can&#8217;t locate application entrance??&#8220;4QImage@@QAEAAV0@SSQAV0@@ &#8220;at QtGui4.dll. 
2:can&#8217;t locate application entrance?? 4QString @QAEAAV0@SSQAV0@
 &#8220;at QtGui4.dll.
Can you tell me what&#8217;s wrong with it?]]></description>
            <guid isPermaLink="false">ca9c4b86693f67f71b5222dca9204cd0</guid>
            <pubDate>Sat, 12 May 2012 10:54:04 GMT</pubDate>
        </item>
  
        <item>
            <title>Qt OpenGL gltexture</title>
            <link>http://qt-project.org/forums/viewthread/16991</link>
            <author>XLeopard</author>
            <description><![CDATA[How can I paste a  pixelmap of the earth on a solid sphere.
But I am not able to deal with the texture coords.
Can you show me a piece of code?]]></description>
            <guid isPermaLink="false">2aa01abc52f8b4f4583485af8f5a1ea1</guid>
            <pubDate>Mon, 07 May 2012 14:21:10 GMT</pubDate>
        </item>
  
        <item>
            <title>I&apos;ve written at least 3 &quot;simple&quot; Qt apps I can email</title>
            <link>http://qt-project.org/forums/viewthread/16818</link>
            <author>cloudbuster</author>
            <description><![CDATA[Qt examples too complex for starters?
I am certainly no guru but

	All 3 work with Qt SDK and are fun

	(1) QtFigs4: example of SAX, paintEvent(graphics) and collections
(2) Lottery: example of paintEvent(graphics), designer and collections
(3) calculator: example of paintEvent(graphics) and designer

	Sometimes the basic usage of these elements is difficult to 
extract from a complex example. (e.g. I seem to remember a &#8220;chart&#8221; example)

	I could create simpler examples but they would NOT be so much fun.]]></description>
            <guid isPermaLink="false">86c60a5228889a409d527e08afa83605</guid>
            <pubDate>Tue, 01 May 2012 17:03:10 GMT</pubDate>
        </item>
  
        <item>
            <title>Qt import 3Dmodels</title>
            <link>http://qt-project.org/forums/viewreply/83919</link>
            <author>XLeopard</author>
            <description><![CDATA[Qt5.0 alpha can not run on windows.
How to deal with it ?]]></description>
            <guid isPermaLink="false">df0fce24e5a517722d4b7a41e397bb5c</guid>
            <pubDate>Sat, 28 Apr 2012 03:59:04 GMT</pubDate>
        </item>
  
        <item>
            <title>Qt import 3Dmodels</title>
            <link>http://qt-project.org/forums/viewthread/16702</link>
            <author>XLeopard</author>
            <description><![CDATA[How can I import 3Dsmax model?]]></description>
            <guid isPermaLink="false">8961003efa94fd678783ddb081aad655</guid>
            <pubDate>Fri, 27 Apr 2012 06:18:54 GMT</pubDate>
        </item>
  
        <item>
            <title>QtLogo</title>
            <link>http://qt-project.org/forums/viewreply/82781</link>
            <author>XLeopard</author>
            <description><![CDATA[void GLWidget::mouseMoveEvent&#40;QMouseEvent *event&#41;
&#123;
&amp;nbsp; &amp;nbsp; int dx = event&#45;&amp;gt;x&#40;&#41; &#45; lastPos.x&#40;&#41;;
&amp;nbsp; &amp;nbsp; int dy = event&#45;&amp;gt;y&#40;&#41; &#45; lastPos.y&#40;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; if &#40;event&#45;&amp;gt;buttons&#40;&#41; &amp;amp; Qt::LeftButton&#41; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setXRotation&#40;xRot + 8 * dy&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setYRotation&#40;yRot + 8 * dx&#41;;
&amp;nbsp; &amp;nbsp; &#125; else if &#40;event&#45;&amp;gt;buttons&#40;&#41; &amp;amp; Qt::RightButton&#41; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setXRotation&#40;xRot + 8 * dy&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setZRotation&#40;zRot + 8 * dx&#41;;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; lastPos = event&#45;&amp;gt;pos&#40;&#41;;
&#125; 


	I delete the event&#45;&amp;gt;button() in mouseMoveEvent(), and it works.

	And I find that &#8220;event&#45;&amp;gt;buttons() &amp;amp; Qt::LeftButton &#8220; equals to &#8220;Qt::LeftArrow&#8221;.
Is it right?

	Edit: please wrap code sections in @ tags; Andre]]></description>
            <guid isPermaLink="false">a5963954f5080cbd576904356628aa9d</guid>
            <pubDate>Thu, 19 Apr 2012 02:39:54 GMT</pubDate>
        </item>
  
        <item>
            <title>QtLogo</title>
            <link>http://qt-project.org/forums/viewthread/16457</link>
            <author>XLeopard</author>
            <description><![CDATA[I can&#8217;t find where &#8220;qtlogo.h&#8221; is]]></description>
            <guid isPermaLink="false">0bb727f63ba3baa434beda4dd1f521b9</guid>
            <pubDate>Wed, 18 Apr 2012 15:18:34 GMT</pubDate>
        </item>
  
        <item>
            <title>setData(int role,const QVariant) Data(int role)</title>
            <link>http://qt-project.org/forums/viewreply/82434</link>
            <author>Andre</author>
            <description><![CDATA[Well, all is contained in the QModelIndex. It contains row, column and parent item. These three together uniquely identify an item in an model. 

	Edit: I happen to have the book here, but I can&#8217;t quickly locate the exact snippet you&#8217;re talking about.]]></description>
            <guid isPermaLink="false">ee91085824f5e9909f61fb7412fe8d36</guid>
            <pubDate>Mon, 16 Apr 2012 15:08:05 GMT</pubDate>
        </item>
  

  </channel>
</rss>
