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

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

    
	<channel>

	<title>Qt DevNet forums: General and Desktop</title>
	<link>http://qt-project.org/forums/viewforum/10/</link>
	<description>RSS feed for latest threads in General and Desktop</description>
	<copyright>Copyright 2013 Qt Project</copyright>
	<docs>http://www.rssboard.org/rss-specification</docs>
	<generator>ExpressionEngine v2.3.1 http://expressionengine.com/</generator>
	<lastBuildDate>Fri, 16 Jul 2010 09:48:12 GMT</lastBuildDate>
	<atom:link href="http://qt-project.org/feeds/forum/10" rel="self" type="application/rss+xml" />

    

	
        <item>
            <title>profiling qt app: pthread_spin_init calls</title>
            <link>http://qt-project.org/forums/viewthread/29043</link>
            <author>t3685</author>
            <description><![CDATA[Hi,

	I&#8217;m using Qt 5.02 (MinGW) to make a little board game. In order to get it to run faster, I ran it through Very Sleepy, and according to the results these are the three most called functions:

	pthread_spin_init
pthread_tls_init
pthread_setspecific

	This is very surprising to me, because I don&#8217;t use any threads. The only thing I can think of, is my use of QVector and QSharedPointer that might do some locking/unlocking.

	I tried the same code on my Linux box (same hardware) and there I see that the results are significantly faster.

	Can anyone clue me in, why pthread function calls are being made?

	Thanks!]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29043</guid>
            <pubDate>Wed, 19 Jun 2013 23:34:31 GMT</pubDate>
        </item>
	
        <item>
            <title>#include  no such file or directory</title>
            <link>http://qt-project.org/forums/viewthread/29041</link>
            <author>mehdi.nine</author>
            <description><![CDATA[Hi,i user this tutorial :
http://doc&#45;snapshot.qt&#45;project.org/qt5&#45;stable/qtserialport/blockingmaster.html

but when i want to run it qt creator error is:

	: error: Unknown module&#40;s&#41; in QT: serialport

and when i hold mouse on  #include &amp;lt;QtSerialPort/QSerialPort&amp;gt; it write
#include &amp;lt;QtSerialPort/QSerialPort&amp;gt; no such file or directory

i use qt 5.1 any idea?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29041</guid>
            <pubDate>Wed, 19 Jun 2013 22:02:31 GMT</pubDate>
        </item>
	
        <item>
            <title>Shrunk scrollbar takes up same amount of space.</title>
            <link>http://qt-project.org/forums/viewthread/29039</link>
            <author>MyQtAccount</author>
            <description><![CDATA[I&#8217;m trying to shrink a scrollbar in a scroll area and have the  area resize to use the space freeded up by the scrollbar.

	I can set the max and min size of the scrollbar in code to shrink it, but there is empty space next to it.  It is the same total space as there was before. 

	Can this be done in code, or is it something that could better be done in the .ui file?  This scrollbar would always need to be very thin.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29039</guid>
            <pubDate>Wed, 19 Jun 2013 21:44:50 GMT</pubDate>
        </item>
	
        <item>
            <title>Does Qt 4.8.5 compile with VC11 (VS2012)?</title>
            <link>http://qt-project.org/forums/viewthread/29038</link>
            <author>HeinzBaumann</author>
            <description><![CDATA[I have downloaded the new Qt 4.8.5 RC2.  Does this successfully compile with VC11 on 64 bit Win7?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29038</guid>
            <pubDate>Wed, 19 Jun 2013 20:49:28 GMT</pubDate>
        </item>
	
        <item>
            <title>qt multiple QGLShaderProgram for one texture</title>
            <link>http://qt-project.org/forums/viewthread/29036</link>
            <author>Dmitry89</author>
            <description><![CDATA[I use two QGLShaderProgram&#8217;s for processing the texture.

	ShaderProgram1&#45;&amp;gt;bind&#40;&#41;; // QGLShaderProgram
ShaderProgram2&#45;&amp;gt;bind&#40;&#41;;
&amp;nbsp;
glBegin&#40;GL_TRIANGLE_STRIP&#41;;
...
glEnd&#40;&#41;;
&amp;nbsp;
ShaderProgram1&#45;&amp;gt;release&#40;&#41;;
ShaderProgram2&#45;&amp;gt;release&#40;&#41;;


	The texture should be processed with Shaderprogram1 and then ShaderProgram2. But when I call ShaderProgram2&#45;&amp;gt;bind() automatically fires ShaderProgram1&#45;&amp;gt;release() and only one shader works. How do I bind both shaders?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29036</guid>
            <pubDate>Wed, 19 Jun 2013 19:13:08 GMT</pubDate>
        </item>
	
        <item>
            <title>Having problem with showing the forms Of a Qvector Members</title>
            <link>http://qt-project.org/forums/viewthread/29035</link>
            <author>mehdi42</author>
            <description><![CDATA[I have A class Named &#8220;Student&#8221; !
I have a Q Vector From Student class
Now I want To show the form of the 2nd Student in my vector !
but when it shows It is empty , it doesn&#8217;t show things the thing in the Ui
What should I do ?! Douse it even can happen ? Or it is not possible in Qt
This is My Code :

	&#123;
///////Sign in things !
&amp;nbsp; &amp;nbsp; int index = StudentSearch&#40;User&#41;;
&amp;nbsp; &amp;nbsp; Student* at = StHead&#45;&amp;gt;data&#40;&#41;;
&amp;nbsp; &amp;nbsp; if &#40;at&#91;index&#93;.GetPass&#40;&#41; == Pass&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; emit Hide_StuLog&#40;&#41;;
&amp;nbsp; &amp;nbsp; at&#91;index&#93;.show&#40;&#41;;
&#125;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29035</guid>
            <pubDate>Wed, 19 Jun 2013 18:07:27 GMT</pubDate>
        </item>
	
        <item>
            <title>How could I register the files do not under the directories of Qt resource system</title>
            <link>http://qt-project.org/forums/viewthread/29034</link>
            <author>stereomatching</author>
            <description><![CDATA[When I want to make my shader files(developed by glsl) as part of the resource system, it would complain that
the files are not under the folder and need to copy them.The problem is, I don&#8217;t want to maintain 2(or 2 + n) 
same shader files in my codes.Copy the shader files don&#8217;t look like a good solution.

	The work around I am thinking is write those shader codes into .cpp files as string const or char const*, what
kind of solution would you suggest?

	ps : I prefer resource system because I want to make sure the program can find the shader file without any problem]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29034</guid>
            <pubDate>Wed, 19 Jun 2013 17:46:41 GMT</pubDate>
        </item>
	
        <item>
            <title>Qt Installer Framework &#45; uninstall</title>
            <link>http://qt-project.org/forums/viewthread/29033</link>
            <author>GrahamL</author>
            <description><![CDATA[Hi
Is there a way of controlling what goes into the uninstaller that is created?
I need to delete some files not specified in the unistaller

	Thanks]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29033</guid>
            <pubDate>Wed, 19 Jun 2013 16:49:24 GMT</pubDate>
        </item>
	
        <item>
            <title>Hyperlink data  in a QTreeItem</title>
            <link>http://qt-project.org/forums/viewthread/29032</link>
            <author>Peggy</author>
            <description><![CDATA[Hello,
I have implemented my own QTreeItem, which shows data in different rows and columns. 

	Now I want to add hyperlink in the third column. The Items in the third column should be shown as hyperlink, which I can click on them and go to the target they reference it on the tree (for example from the third row to the first row). 

	Can anyone give me some hint, how can I implement it?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29032</guid>
            <pubDate>Wed, 19 Jun 2013 16:42:51 GMT</pubDate>
        </item>
	
        <item>
            <title>Cube OpenGL ES 2.0 example on Windows XP with DirectX 9.0c</title>
            <link>http://qt-project.org/forums/viewthread/29031</link>
            <author>newspeaper</author>
            <description><![CDATA[Hello,

	When I run the OpenGL ES 2.0 example on my Windows XP box with DirectX 9,0c, I get a blank window with the following warnings/errors. Can anyone shed light, what I am missing?

	*QGLShader::link: &#8220;(35,17): warning X3206: implicit truncation of vector type

	&#8220; 
 &#8211; texture upload failed, error code 0&#215;502, enum: 3553 (de1)*

	Thanks
AB]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29031</guid>
            <pubDate>Wed, 19 Jun 2013 16:18:10 GMT</pubDate>
        </item>
	
        <item>
            <title>Can QWidget::update() be called in a sub thread other than the GUI thread?</title>
            <link>http://qt-project.org/forums/viewthread/29030</link>
            <author>rockvegas</author>
            <description><![CDATA[As the title&#8217;s question, I wrote a program to render the complex graphics at a sub&#45;thread (want not to occupy much cpu time for the GUI thread in order to speed up user interaction response) into a QImage, after that in this sub&#45;thread render call stack, call update() directly to let QT deliver a queued connection (I guess it act as this) which lead to a QWidget::paintEvent in GUI thread to drawImage to the widget.

	This do works, but I found after running a while, occasionally, the GUI thread did not response to the update() call by the sub&#45;thread (means i called update(), but no paintEvent received), but only response to the system level update/paintEvent cycle (for example, get/lose focus of the main window).

	I took a glance at the QT code, seems the system&#8217;s updatePending member var is true that causes the QT ignores my update call. But i am not sure. 

	Can any friend tell me whether the update() is designed to be able to called in sub&#45;thread other than GUI?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29030</guid>
            <pubDate>Wed, 19 Jun 2013 16:00:52 GMT</pubDate>
        </item>
	
        <item>
            <title>Connection of signal from separate ( child ) thread to slot of mainwindow ( parent thread &#45; main thread ) problem[SOLVED]</title>
            <link>http://qt-project.org/forums/viewthread/29029</link>
            <author>Pavel Mazniker</author>
            <description><![CDATA[Hi,

	How are you doing?

	This is a relatively simple threading problem. I have a main thread where child thread were created and run called:

	@dcc = new DetectClassifyComputation&#40;&#41;;
connect&#40;dcc,SIGNAL&#40;data_ready&#40;&#41;&#41;,this,SLOT&#40;plot_processed_samples&#40;&#41;&#41;,Qt::QueuedConnection&#41;;
&amp;nbsp;
....
&amp;nbsp;dcc&#45;&amp;gt;updatePDParameters&#40;this&#45;&amp;gt;samples_to_process,&amp;amp;pks,&amp;amp;pks_ind,this&#45;&amp;gt;smpl_rate,stng.getUi&#40;&#41;&#45;&amp;gt;spinBox_det_ratio&#45;&amp;gt;value&#40;&#41;*0.1&#41;;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&amp;quot;before starting new thread &amp;quot;&amp;lt;&amp;lt;endl;
&amp;nbsp; &amp;nbsp; dcc&#45;&amp;gt;setStackSize&#40;100000&#41;;
&amp;nbsp; &amp;nbsp; dcc&#45;&amp;gt;start&#40;QThread::HighPriority&#41;;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&amp;quot;after starting new thread &amp;quot;&amp;lt;&amp;lt;endl;
&amp;nbsp; &amp;nbsp; QApplication::setOverrideCursor&#40;QCursor&#40;Qt::WaitCursor&#41;&#41;;
&amp;nbsp; &amp;nbsp; this&#45;&amp;gt;setEnabled&#40;false&#41;;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&amp;quot;PREPROCESS 6. &amp;quot;&amp;lt;&amp;lt;endl;
&amp;nbsp; &amp;nbsp; while&#40;!dcc&#45;&amp;gt;isFinished&#40;&#41;&#41;
&amp;nbsp; &amp;nbsp; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QApplication::processEvents&#40;&#41;;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; this&#45;&amp;gt;setEnabled&#40;true&#41;;
&amp;nbsp; &amp;nbsp; QApplication::restoreOverrideCursor&#40;&#41;;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&amp;quot;END OF PREPROCESS &amp;quot;&amp;lt;&amp;lt;endl;


	where dcc is the instance of the thread class.  The signal is defined in the thread class as:
Q_SIGNALS:
&amp;nbsp; &amp;nbsp; void data_ready&#40;&#41;;

I observe, that MainWindow where I call the run of the thread &#8220;hangs&#8221; ( &#8220;freezes&#8221;) after some time ( on third or second run of the thread ) with  exception code c0000005. That is on Windows 7 and the program fails.
It seems once the slot can&#8217;t be invoked.
My question is what is the problem?  How to fix that?
Thank you in advance in any help with this issue.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29029</guid>
            <pubDate>Wed, 19 Jun 2013 15:57:30 GMT</pubDate>
        </item>
	
        <item>
            <title>QT support for Visual studio 2012 ultimate edition</title>
            <link>http://qt-project.org/forums/viewthread/29027</link>
            <author>Raveendra</author>
            <description><![CDATA[Hi All ,

 I was building QT application using Visual studio 2008 previously with the help of QT add&#45;on for VS2008 on windows Platform. I was using QT4.8 SDK to build the applications and generated binary were working fine .

	But Recently i upgraded/migrated to Visual Studio 2012 Ultimate edition and installed Visual Studio Add&#45;in 1.2.1 without upgrading my QT SDK. It was compiling and generating binary and unfortunately the when i execute the binary its crashing.  when i troubleshoot the cause of crash i found QString.toStdString().c_str() was giving junk value and the same statement works fine with prev binary.

	How to solve this problem  ? there is no QT 5 SDK for Windows 32&#45;bit available which can run on VS12. 
What call can i take it now ? Is my migration is completed ? any other changes need to be done. Please Help me]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29027</guid>
            <pubDate>Wed, 19 Jun 2013 14:52:48 GMT</pubDate>
        </item>
	
        <item>
            <title>Select a Single Column in QTableView</title>
            <link>http://qt-project.org/forums/viewthread/29026</link>
            <author>deepakkakkeel</author>
            <description><![CDATA[Hi,

	I have a QTableView with a QSelectionModel set on the QTableVoew.
May i know how do i select a particular column only. If i select column number 1 , I should not be allowed to select column number 2. That is at a time more than one column cannot be selected.

	Thanks
Deepak]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29026</guid>
            <pubDate>Wed, 19 Jun 2013 14:05:19 GMT</pubDate>
        </item>
	
        <item>
            <title>Qt 4.8.4 static build WITH MySQL pluing enabled using MinGw 4.6</title>
            <link>http://qt-project.org/forums/viewthread/29024</link>
            <author>yazwas</author>
            <description><![CDATA[Good day

	I&#8217;m able to build Qt 4.8.4 statically with MinGW (similar to these [wiki.batcom&#45;it.net]) instructions). The issue is I want to use MySQL statically with it as well, but I&#8217;m not able to do that.
I compiled Qt with mysql plugin enabled. when trying to use it, I&#8217;m getting this error.

	plugins/sqldrivers/libqsqlmysql.a&#40;qsql_mysql.o&#41;:qsql_mysql.cpp:&#40;.text+0x140&#41;: undefined reference to `mysql_stmt_insert_id@4&apos;


	This is part of the .pro file

	TARGET = static&#45;test
TEMPLATE = app
CONFIG += static
QTPLUGIN += qsqlmysql
LIBS += &#45;LC:/mysql/lib/ &#45;lmysqlclient


	What should I do next? should I try to compile mysqlclient with MinGW 4.6 as well?

	Or should I go for VS 2010 build?

	Thanks!]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/29024</guid>
            <pubDate>Wed, 19 Jun 2013 13:41:27 GMT</pubDate>
        </item>
	

	</channel>
</rss>