<?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 2012 Qt Developer Network</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>Qt 4.8.2 included in latest SDK or not?</title>
            <link>http://qt-project.org/forums/viewthread/17493</link>
            <author>MuldeR</author>
            <description><![CDATA[On http://qt&#45;project.org/downloads it says:

	The Qt SDK version 1.2.1 released on April 11th contains:
	
		Qt libraries version 4.8.2
	

	But when I download the latest SDK installer and select &#8220;Custom&#8221;, then only Qt 4.8.1 (or older) can be selected.

	Is this a typo on the download page or do I miss something?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17493</guid>
            <pubDate>Thu, 24 May 2012 19:05:47 GMT</pubDate>
        </item>
	
        <item>
            <title>QSharedMemory handle issues (RHEL)</title>
            <link>http://qt-project.org/forums/viewthread/17492</link>
            <author>brny</author>
            <description><![CDATA[Hello &#8211; 

	I have a very strange problem.  Basically, I use a QSharedMemory segment (Qt 4.7) in order to share/push data out from my application&#8217;s main window to child windows.  The child windows attach to the same segment using a completely static text key, the same used by the main window when initially creating the shared memory segment (e.g. &#8220;memory_share_test&#8221;).  While the main window creates the shared memory segment, the child windows only attach (as they are opened when needed), and read data from the shared memory as needed (in order to display updating data).

	By and large, this works fine.  I can open/close child windows all day and not have any issues.  However, if I go away for a few days (say, across a weekend, where my updating data source is effectively offline) and come back, the child windows that are already open will continue to be fine (they can continue to see the shared memory segment fine).  But if I open a new child window after this period of inactivity, I can&#8217;t attach to the shared memory segment from the (new) child windows &#8211; I get the error &#8220;QSharedMemory::handle:: UNIX key file doesn&#8217;t exist&#8221;.  Again, the child windows that are already open are fine, but if I close them (and re&#45;open them) I get the same error.  It&#8217;s as if &#8211; after some time &#8211; I can no longer attach to the shared memory segment using the text key.  Shutting down the whole application and restarting it (forcing the main window to re&#45;create the shared memory again) solves the issue.

	My gut instinct is that perhaps the OS (RHEL in this case) is doing some sort of housekeeping after a period of inactivity, perhaps corrupting the ability for any new child windows to find that shared memory segment in the future.  Adding to this possibility, I have been running this same application on Linux Mint as well, and I have not seen this issue (at least yet).

	Any suggestions or insight would be much appreciated!

	Thanks,

	Brett]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17492</guid>
            <pubDate>Thu, 24 May 2012 18:52:09 GMT</pubDate>
        </item>
	
        <item>
            <title>[Moved]Any way to reduce timeout interval for Network Access Manager&#63;</title>
            <link>http://qt-project.org/forums/viewthread/17491</link>
            <author>mady</author>
            <description><![CDATA[Hi Experts,
  I am working on a download software, using NAM to donwload files. Things are working fine in most of the cases but when there is no internet connection (but LAN is working) It is taking almost ~40 seconds to TimeOut. 
  I googled and find some suggestions where people are suggesting to use timer but is this the only solution? I am thinking if there is any way to change the timeout interval so that we can get notification quicker.

	[Moved /Vass]]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17491</guid>
            <pubDate>Thu, 24 May 2012 18:19:41 GMT</pubDate>
        </item>
	
        <item>
            <title>Can i hook native win32 api code into Qt code?</title>
            <link>http://qt-project.org/forums/viewthread/17490</link>
            <author>umen242</author>
            <description><![CDATA[Hi 
im looking for away to disable the windows key , i didnt find any problematically way in Qt but did found some code in native win32 code
my question is can i hook this code into Qt somehow 
here is the link to the code: 
http://www.programmersheaven.com/mb/windows/344596/344659/problem&#45;solved/ [programmersheaven.com]]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17490</guid>
            <pubDate>Thu, 24 May 2012 17:48:47 GMT</pubDate>
        </item>
	
        <item>
            <title>How to deal with foreign key in Qt?</title>
            <link>http://qt-project.org/forums/viewthread/17488</link>
            <author>DrizzleX</author>
            <description><![CDATA[else
&amp;nbsp; &amp;nbsp; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query&#45;&amp;gt;prepare &#40;&amp;quot;insert into Courses values (?,?,?)&amp;quot;&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query&#45;&amp;gt;bindValue &#40;0,courseIDLine&#45;&amp;gt;text &#40;&#41;&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query&#45;&amp;gt;bindValue &#40;1,courseNameLine&#45;&amp;gt;text &#40;&#41;&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query&#45;&amp;gt;bindValue &#40;2,courseTeacherIDLine&#45;&amp;gt;text &#40;&#41;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; successful=query&#45;&amp;gt;exec &#40;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; if&#40;successful&#41;
&amp;nbsp; &amp;nbsp; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; closeInsertCourseDlg &#40;&#41;;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; else if&#40;!errorMsg&#45;&amp;gt;isVisible &#40;&#41;&#41;
&amp;nbsp; &amp;nbsp; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //indicate that cannot execute the statement
&amp;nbsp; &amp;nbsp; &#125;


	but if the SQL statement doesn&#8217;t satisfy the foreign key, the program will end unexpectedly, saying that the statement have conflicts with foreign key in SQL Server.

 it will not just return a false

	how to change the code??]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17488</guid>
            <pubDate>Thu, 24 May 2012 16:10:26 GMT</pubDate>
        </item>
	
        <item>
            <title>Inter&#45;changeable style sheets, are they possible?</title>
            <link>http://qt-project.org/forums/viewthread/17486</link>
            <author>Dolphin</author>
            <description><![CDATA[I can see that the style sheet code I have put into gui via Qt Designer is put into the project.ui xml document and is not actually its own file as per CSS.  

	What if I want more than one look and feel for a project?  Is there any way to have multiple &#8216;style sheets&#8217; like I would do with CSS so styles can be interchanged?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17486</guid>
            <pubDate>Thu, 24 May 2012 15:46:09 GMT</pubDate>
        </item>
	
        <item>
            <title>QToolTip::show problem</title>
            <link>http://qt-project.org/forums/viewthread/17485</link>
            <author>ahura_24</author>
            <description><![CDATA[hi please check this and help me . tnx alot
my qt library is 4.8.1 vs2008 sp1

	#ifndef FORM_H
#define FORM_H
&amp;nbsp;
#include &amp;lt;QtGui&amp;gt;
&amp;nbsp;
class form : public QWidget
&#123;
&amp;nbsp; &amp;nbsp; Q_OBJECT
public:
&amp;nbsp; &amp;nbsp; explicit form&#40;QWidget *parent = 0&#41;;
&amp;nbsp;
private slots:
&amp;nbsp; &amp;nbsp; void onbtnclick&#40;&#41;;
&amp;nbsp; &amp;nbsp; 
private:
&amp;nbsp; &amp;nbsp; QLineEdit *l;
&amp;nbsp; &amp;nbsp; QPushButton *b;
&#125;;
&amp;nbsp;
#endif // FORM_H


	#include &amp;quot;form.h&amp;quot;
&amp;nbsp;
form::form&#40;QWidget *parent&#41; :
&amp;nbsp; &amp;nbsp; QWidget&#40;parent&#41;
&#123;
&amp;nbsp; &amp;nbsp; QVBoxLayout *lay = new QVBoxLayout&#40; this &#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; l = new QLineEdit;
&amp;nbsp; &amp;nbsp; b = new QPushButton;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; lay&#45;&amp;gt;addWidget&#40; l &#41;;
&amp;nbsp; &amp;nbsp; lay&#45;&amp;gt;addWidget&#40; b &#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; connect&#40;b, SIGNAL&#40;clicked&#40;&#41;&#41;, this, SLOT&#40;onbtnclick&#40;&#41;&#41;&#41;;
&#125;
&amp;nbsp;
void form::onbtnclick&#40;&#41;
&#123;
&amp;nbsp; &amp;nbsp; QToolTip::showText&#40;l&#45;&amp;gt;pos&#40;&#41;, &amp;quot;sometext&amp;quot;, l&#41;;
&#125;


	#include &amp;quot;form.h&amp;quot;
&amp;nbsp;
int main&#40;int argc, char **argv&#41;
&#123;
&amp;nbsp; &amp;nbsp; QApplication app&#40; argc, argv &#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; form f;
&amp;nbsp; &amp;nbsp; f.show&#40;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; return app.exec&#40;&#41;;
&#125;


	i want tooltip display for lineedit but display in other region and out of my widget !!!!]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17485</guid>
            <pubDate>Thu, 24 May 2012 15:39:29 GMT</pubDate>
        </item>
	
        <item>
            <title>mouse leave region ...</title>
            <link>http://qt-project.org/forums/viewthread/17484</link>
            <author>ahura_24</author>
            <description><![CDATA[hi . i can use mouseMoveEvent when mouse enter region but how can i use of event when mouse leave region ?! 

	void myLineEdit::mouseMoveEvent&#40;QMouseEvent *e&#41;
&#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;QApplication::setOverrideCursor&#40;Qt::waitCursor&#41;;
&#125;
&amp;nbsp;
void myLineEdit::mouseLeaveEvent&#40;QMouseEvent *e&#41; // but doesnt exist please help me for this function
&#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;QApplication::restoreOverrideCursor&#40;&#41;;
&#125;


	how can i know mouse leave from region for example QLineEdit ( mouse enter/leave event )?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17484</guid>
            <pubDate>Thu, 24 May 2012 15:25:31 GMT</pubDate>
        </item>
	
        <item>
            <title>using QTest::qExec&#40;&#41;  with parameters</title>
            <link>http://qt-project.org/forums/viewthread/17483</link>
            <author>Sam</author>
            <description><![CDATA[In QTestLib Manual [qt&#45;project.org]   it is specified that along with the test classes we can also specify some arguments like &#45;functions , &#45;xml etc. But how can we specity the same argument list if we run the test using 

	QTest::qExec&#40;testClass,argument&#41;. 


	I need to store the list of functions in a testClass in a QStringList. I am able to use the arguments/parameters while running my test class through command prompt like testClass.exe &#45;functions that returns the function list.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17483</guid>
            <pubDate>Thu, 24 May 2012 14:02:55 GMT</pubDate>
        </item>
	
        <item>
            <title>eventFilter does not updates a variable</title>
            <link>http://qt-project.org/forums/viewthread/17480</link>
            <author>RSousa</author>
            <description><![CDATA[Hi,

	Im using the eventFilter function to update a variable that&#8217;s belongs to the same class by generating an event through postevent function(in other class).
The event is processed and the variable is changed indeed inside of eventFilter function. But from the class that generate the postevent, the variable remains untouched&#8230;

	I really thank you 

	Ricardo Sousa]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17480</guid>
            <pubDate>Thu, 24 May 2012 13:44:07 GMT</pubDate>
        </item>
	
        <item>
            <title>QODBC, windows, only debug version</title>
            <link>http://qt-project.org/forums/viewthread/17478</link>
            <author>Luca</author>
            <description><![CDATA[Hi all,
I&#8217;m trying to use QODBC plugin in windows 7.

	I built the plugin as described in the documentation.
I installed the Qt source (4.7.4) from SDKMaintenance.
Then I built the plugin this way:
cd c:\QtSDK\QtSources\4.7.4\src\plugins\sqldrivers\odbc
qmake odbc.pro
mingw32&#45;make


	after this I get the odbc plugin in only debug version:
qsqlodbcd4.dll


	Is there a way to get a release version?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17478</guid>
            <pubDate>Thu, 24 May 2012 12:10:09 GMT</pubDate>
        </item>
	
        <item>
            <title>Qt and gdb</title>
            <link>http://qt-project.org/forums/viewthread/17476</link>
            <author>GrahamL</author>
            <description><![CDATA[Hi
I realise that this might not be the best place for this question &#8230;

	I am trying to get a python enabled version of gdb working on my windows 7 machine so that I can use pretty printing for Qt types.
I have downloaded gdb 7.4 which I believed to be pyton enabled, but when I try it gdb tells me that python in so supported by this version.

	Does anyone know how I can resolve this?

	Thanks]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17476</guid>
            <pubDate>Thu, 24 May 2012 11:26:43 GMT</pubDate>
        </item>
	
        <item>
            <title>QtTreeWidget: issue with indicator display + drop target</title>
            <link>http://qt-project.org/forums/viewthread/17475</link>
            <author>gjaegy</author>
            <description><![CDATA[Hi,

	It seems part of this question has already been asked a few time, but I haven&#8217;t been able to find any matching answer until now, so I decided to create a new post.

	I have a tree containing my scene graph, using a custom derived QtTreeWidget class directly (no model/view):

	

	Now, I have two issues, which are linked together I guess, related to moving items within the tree:

	
		first of all, no drop indicator is being shown, although I think I have called the right code:
setAcceptDrops&#40;imTRUE&#41;;
setDragEnabled&#40;true&#41;;
setDragDropMode&#40;DragDrop&#41;;
setDragDropOverwriteMode&#40;imFALSE&#41;;
setDropIndicatorShown&#40;imTRUE&#41;;
&amp;nbsp;
setSelectionMode&#40;QAbstractItemView::SingleSelection&#41;;
setSelectionBehavior&#40;QAbstractItemView::SelectRows&#41;;

	

	I have tried to derive my own style and experiment with QStyle::PE_IndicatorItemViewItemDrop, but without any success.
I have also tried to draw a custom line by myself, but I can&#8217;t figure out where it should be drawn exactly (see point 2 below).

	
		it is very hard to precisely define where the node will be dropped. More precisely, I can&#8217;t figure out why the node gets sometimes added as child of the target, and sometimes it gets added before or after the target item. I know the position of the cursor defines this behaviour, however, without any visual indicator, this is really hard to use.
	

	Any help would be appreciated, I have had this issue for month now  
Thanks guys !]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17475</guid>
            <pubDate>Thu, 24 May 2012 11:02:21 GMT</pubDate>
        </item>
	
        <item>
            <title>how setting multimedia playback speed in Qt Phonon</title>
            <link>http://qt-project.org/forums/viewthread/17474</link>
            <author>coolx</author>
            <description><![CDATA[hello everyone!
I use the Qt Phonon in developing a multimedia player。
I need to set the playback speed, but I did not find the relevant API in Phonon::MediaObject or others class。
Does Qt Phonon support setting playback speed ？
Or what&#8217;s the solution in Qt Phonon?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17474</guid>
            <pubDate>Thu, 24 May 2012 10:42:26 GMT</pubDate>
        </item>
	
        <item>
            <title>How to disable the auto&#45;enlarging of QSplitter when adding more widgets</title>
            <link>http://qt-project.org/forums/viewthread/17470</link>
            <author>james_cgwang</author>
            <description><![CDATA[Hi Team,

	I&#8217;m trying to develop one simple application with QSplitter, the splitter is used as one big container, and one or more widgets can be added into it, the problem is that &#8211; 

	The QSplitter may auto&#45;enlarge when adding more sub&#45;widgets, is there any way to prevent this? I know this is a very strange requirement, but I ONLY want to the QSplitter to be resized when the outer window is resized, thanks very much!

	Regards
James]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17470</guid>
            <pubDate>Thu, 24 May 2012 09:22:38 GMT</pubDate>
        </item>
	

	</channel>
</rss>
