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

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

    
	<channel>

	<title>Qt DevNet forums: Language Bindings</title>
	<link>http://qt-project.org/forums/viewforum/15/</link>
	<description>RSS feed for latest threads in Language Bindings</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, 03 Mar 2012 09:10:51 GMT</lastBuildDate>
	<atom:link href="http://qt-project.org/feeds/forum/15" rel="self" type="application/rss+xml" />

    

	
        <item>
            <title>Python/C++ &#45; How to change the color of some text of tree widget items</title>
            <link>http://qt-project.org/forums/viewthread/17462</link>
            <author>needhelp_gh</author>
            <description><![CDATA[Hi,

	I have this code in c++:

	item&#45;&amp;gt;setForeground&#40;0,Qt::red&#41;;


	to change the color of some text of tree widget items, but I&#8217;m not sure how to convert Qt::red to python.   Please help!!]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17462</guid>
            <pubDate>Wed, 23 May 2012 21:25:57 GMT</pubDate>
        </item>
	
        <item>
            <title>[Solved] Qt &#45; How to select item in tree widget?</title>
            <link>http://qt-project.org/forums/viewthread/17416</link>
            <author>needhelp_gh</author>
            <description><![CDATA[Hi, 

	I was trying to write code that selects an item in a tree if it exists.

	Here is what I have so far:

	if a != &amp;quot;&amp;quot;:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; item = QtGui.QTreeWidgetItem&#40;tree&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; item.setText&#40;0, a&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.setCurrentItem&#40;item&#41;


	but this seems to just add it to the tree &amp;amp; select it.  I just want it to select the item if it exists in the tree not re&#45;add it.  Help!!

	Thanks!!

	[Moved: because this forum is right place for python questions /Vass]]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17416</guid>
            <pubDate>Tue, 22 May 2012 16:13:01 GMT</pubDate>
        </item>
	
        <item>
            <title>Why QScriptValue and not QVariant?</title>
            <link>http://qt-project.org/forums/viewthread/17404</link>
            <author>SimonHaines</author>
            <description><![CDATA[I&#8217;ve been browsing through the QScript code and wondered why script values are contained to their own type (QScriptValue) which has pretty much the same underlying machinery as QVariant, whereas it would be trivial to write QVariant&#45;aware wrapper types for the ECMAScript types (Date, RegEx, etc) and use these.

	Are there implementation concerns I&#8217;m not aware of that precludes using variants? Is it faster to avoid the QVariant infrastructure? Am I missing something?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17404</guid>
            <pubDate>Tue, 22 May 2012 07:14:36 GMT</pubDate>
        </item>
	
        <item>
            <title>compiling PythonQt with Qt creator</title>
            <link>http://qt-project.org/forums/viewthread/17396</link>
            <author>ahmed kato</author>
            <description><![CDATA[I am trying to compile PythonQt [pythonqt.sourceforge.net] using Qt creator but it return me 163 errors.

	
		C:\Users\Kato\Desktop\Qt projects\PythonQt&#45;build&#45;desktop&#45;Qt_4_7_4_for_Desktop_&#45;_MinGW_4_4__Qt_SDK__Debug\src\..\..\PythonQt2.0.1\src\PythonQtStdDecorators.h:46: error: Python.h: No such file or directory
	

	and such other directories.

	I have python 3.2 installed and I have changed prf file to be:
# profile to include and link Python
&amp;nbsp;
# Change this variable to your python version (2.5, 2.6)
win32:PYTHON_VERSION=32
unix:PYTHON_VERSION=2.6
&amp;nbsp;
macx &#123;
&amp;nbsp; # for macx you need to have the Python development kit installed as framework
&amp;nbsp; INCLUDEPATH += /System/Library/Frameworks/Python.framework/Headers
&amp;nbsp; LIBS += &#45;F/System/Library/Frameworks &#45;framework Python
&#125; else:win32 &#123;
&amp;nbsp; # for windows install a Python development kit or build Python yourself from the sources
&amp;nbsp; # Make sure that you set the environment variable PYTHON_PATH to point to your
&amp;nbsp; # python installation (or the python sources/header files when building from source).
&amp;nbsp; # Make sure that you set the environment variable PYTHON_LIB to point to
&amp;nbsp; # the directory where the python libs are located.
&amp;nbsp; #
&amp;nbsp; # When using the prebuild Python installer, this will be:
&amp;nbsp; # set PYTHON_PATH = c:\Python26
&amp;nbsp; # set PYTHON_LIB &amp;nbsp;= c:\Python26\libs
&amp;nbsp; PYTHON_PATH= C:\Python32
&amp;nbsp; PYTHON_LIB= C:\Python32\libs
&amp;nbsp; #
&amp;nbsp; # When using the python sources, this will be something like:
&amp;nbsp; # set PYTHON_PATH = c:\yourDir\Python&#45;2.6.1\
&amp;nbsp; # set PYTHON_LIB &amp;nbsp;= c:\yourDir\Python&#45;2.6.1\PCbuild8\Win32
&amp;nbsp;
&amp;nbsp; # check if debug or release
&amp;nbsp; CONFIG&#40;debug, debug|release&#41; &#123;
&amp;nbsp; &amp;nbsp; DEBUG_EXT = _d 
&amp;nbsp; &#125; else &#123;
&amp;nbsp; &amp;nbsp; DEBUG_EXT = 
&amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; win32:INCLUDEPATH += $&#40;PYTHON_PATH&#41;/PC $&#40;PYTHON_PATH&#41;/include
&amp;nbsp; win32:LIBS += $&#40;PYTHON_LIB&#41;/python$$&#123;PYTHON_VERSION&#125;$$&#123;DEBUG_EXT&#125;.lib
&amp;nbsp;
&#125; else:unix &#123;
&amp;nbsp; # on linux, python&#45;config is used to autodetect Python.
&amp;nbsp; # make sure that you have installed a matching python&#45;dev package.
&amp;nbsp; 
&amp;nbsp; unix:LIBS += $$system&#40;python$$&#123;PYTHON_VERSION&#125;&#45;config &#45;&#45;libs&#41;
&amp;nbsp; unix:QMAKE_CXXFLAGS += $$system&#40;python$$&#123;PYTHON_VERSION&#125;&#45;config &#45;&#45;includes&#41;
&#125;

according to this build link [pythonqt.sourceforge.net] I am right
but same errors !!
I don&#8217;t know what is the problem
thank you in advance =&#41;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17396</guid>
            <pubDate>Mon, 21 May 2012 19:01:25 GMT</pubDate>
        </item>
	
        <item>
            <title>PyQt Signals</title>
            <link>http://qt-project.org/forums/viewthread/17393</link>
            <author>needhelp_gh</author>
            <description><![CDATA[Hi,

	When I put this piece of code in my PyQt python script:

	widget.connect&#40;comboBox, QtCore.SIGNAL&#40;&amp;quot;activated(QString)&amp;quot;&#41;, function&#40;param&#41;&#41;


	It complains this error:

	
		    widget.connect(comboBox, QtCore.SIGNAL&#8221;), function(param))
TypeError: argument 3 of QObject.connect() has an invalid type
	

	Is there any way I can have my function with parameters or is the only way:

	widget.connect&#40;comboBox, QtCore.SIGNAL&#40;&amp;quot;activated(QString)&amp;quot;&#41;, function&#41;


	Thanks!!]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17393</guid>
            <pubDate>Mon, 21 May 2012 16:24:23 GMT</pubDate>
        </item>
	
        <item>
            <title>clicked() signal for QListView in Ruby</title>
            <link>http://qt-project.org/forums/viewthread/17344</link>
            <author>Overflow012</author>
            <description><![CDATA[I have a ListView and when I click in a row I need show more information about this row. My problem is that the signal clicked() does not work for ListView. When I initialize my application I get the following output in console

	Object::connect: No such signal QListView::clicked(index)
Object::connect: (sender name: &#8216;appointments_list&#8217;)

	And when I click in a row nothing happend.
class GUICustomerAppointmentDetail &amp;lt; Qt::Widget
&amp;nbsp;
&amp;nbsp; &amp;nbsp; def initialize &#40;parent = nil, customer = nil&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super&#40;parent&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... &amp;nbsp; &amp;nbsp; 
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @ui.appointments_list.connect&#40;SIGNAL&#40;&apos;clicked(index)&apos;&#41;, self, SLOT&#40;&apos;load_data()&apos;&#41;&#41; 
&amp;nbsp; &amp;nbsp; end
&amp;nbsp;
end

appointments_list is a Qt::ListView

	I have replaced
&amp;nbsp; &amp;nbsp; @ui.appointments_list.connect&#40;SIGNAL&#40;&apos;clicked(index)&apos;&#41;, self, SLOT&#40;&apos;load_data()&apos;&#41;&#41;

by
&amp;nbsp; &amp;nbsp; connect&#40;appointments_list.connect, SIGNAL&#40;&apos;clicked(index)&apos;&#41;, self, SLOT&#40;&apos;load_data()&apos;&#41;&#41;

and I get

	Object::connect: No such signal QListView::clicked(index)
Object::connect: (sender name: &#8216;appointments_list&#8217;)
Object::connect: (receiver name: &#8216;customerAppointmentDetail&#8217;)

	also
&amp;nbsp; &amp;nbsp; @ui.appointments_list.connect&#40;SIGNAL&#40;&apos;clicked(index)&apos;&#41;&#41;&#123; load_data&#40;&#41; &#125;

and I get
Object::connect: No such signal QListView::clicked(index)
Object::connect: (sender name: &#8216;appointments_list&#8217;)

	Please, can anyone help me?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17344</guid>
            <pubDate>Sat, 19 May 2012 04:06:33 GMT</pubDate>
        </item>
	
        <item>
            <title>Uniform Qt bindings for JRuby and Ruby</title>
            <link>http://qt-project.org/forums/viewthread/17280</link>
            <author>CeesZ</author>
            <description><![CDATA[Hi everyone,
In case there are any Ruby fans on this forum, I have just uploaded a new Gem package (qt_connect) with the aim to provide a uniform Qt API for both Ruby and JRuby platforms. The Gem provides JRuby bindings to the Qt Jambi library with an (optional) extension to provide backward compatibility with existing Qt Ruby programs. The same Gem package provides for Qt Ruby programs a QtJambi inspired interface to the Signals/Slots system without the need to use C++ signatures.

	download from RubyGems.org: gem install qt_connect

	project on github: https://github.com/CeesZ/qt_connect]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17280</guid>
            <pubDate>Wed, 16 May 2012 18:18:49 GMT</pubDate>
        </item>
	
        <item>
            <title>Basic Text editor with QTJambi</title>
            <link>http://qt-project.org/forums/viewthread/17253</link>
            <author>katina30</author>
            <description><![CDATA[Hi everyone, I have to make a basic text editor I already have the code for new, close, about.
But I have no idea how to make the copy, cut, paste, search, reeplace.
Could somebody help mee pleasee!!]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17253</guid>
            <pubDate>Wed, 16 May 2012 01:36:22 GMT</pubDate>
        </item>
	
        <item>
            <title>How to edit data in a TableModel/TableView?</title>
            <link>http://qt-project.org/forums/viewthread/17238</link>
            <author>Overflow012</author>
            <description><![CDATA[Hello all,

	I have the following code:

	class CustomerTableModel &amp;lt; Qt::AbstractTableModel
&amp;nbsp; &amp;nbsp; ...
&amp;nbsp;
&amp;nbsp; &amp;nbsp; def flag index
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return Qt::ItemIsEditable;
&amp;nbsp; &amp;nbsp; end
&amp;nbsp;
&amp;nbsp; &amp;nbsp; def setData index, value, role = Qt::EditRole
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if &#40;index.isValid&#40;&#41; &amp;amp;&amp;amp; role == Qt::EditRole&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; update_value&#40;index.row&#40;&#41;, value.toString&#40;&#41;&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; emit dataChanged&#40;index, index&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false
&amp;nbsp; &amp;nbsp; &amp;nbsp;end
end
&amp;nbsp;
class GUICustomerWidget &amp;lt; Qt::Widget
&amp;nbsp; &amp;nbsp; def initialize
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @tableView.set_model&#40;CustomerTableModel.new&#40;&#41;&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @tableView.setEditTriggers&#40; Qt::AbstractItemView::DoubleClicked &#41;
&amp;nbsp; &amp;nbsp; end
end


	TableView show all data but I can&#8217;t edit. I&#8217;m reading this page [qtforum.org] but doesn&#8217;t work. Should I add something to the tableView?
Can please anyone tell me what I do wrong?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17238</guid>
            <pubDate>Tue, 15 May 2012 15:17:01 GMT</pubDate>
        </item>
	
        <item>
            <title>PyQt Phonon Video Player  memory leak</title>
            <link>http://qt-project.org/forums/viewthread/17000</link>
            <author>loked</author>
            <description><![CDATA[Hey,

	I&#8217;m creating an instance of Phonon.VideoPlayer in my UI and every time
I instantiate the player it allocates about 40mb or memory I can&#8217;t
seem to get back. This is the call:

 player = Phonon.VideoPlayer(Phonon.VideoCategory,self)

	I&#8217;ve tried player.stop(), del player, I&#8217;ve done a sip delete,
player.deleteLater() and player.destroy() but none seem to free up the
memory.

	Has anyone run into the same problem?

	Thanks!]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/17000</guid>
            <pubDate>Mon, 07 May 2012 19:53:58 GMT</pubDate>
        </item>
	
        <item>
            <title>QtJambi 4.8 incl. Qt3D</title>
            <link>http://qt-project.org/forums/viewthread/16686</link>
            <author>pedro79</author>
            <description><![CDATA[I maintained the QtJambi wrapper to successfully work with Qt4.8 and Qt3D.
Have a look on https://gitorious.org/~pedro79/qt&#45;jambi/qtjambi&#45;4_8_with_qt3d.

	The QtJambi makes following modules of Qt and Qt3D available in Java:
	
		QtCore
		QtGui
		QtMultimedia
		QtNetwork
		QtOpenGL
		QtScript —&amp;gt; import com.trolltech.qt.script.*;
		QtScriptTools —&amp;gt; import com.trolltech.qt.scripttools.*;
		QtSql
		QtSvg
		QtWebKit
		QtXml
		QtXmlPatterns
		QtDeclarative —&amp;gt; import com.trolltech.qt.declarative.*;
		QtHelp —&amp;gt; import com.trolltech.qt.help.*;
		Phonon
		Qt3D —&amp;gt; import com.trolltech.qt.qt3d.*;
		Qt3DQuick —&amp;gt; import com.trolltech.qt.declarative.qt3d.*;
	

	I am strongly interested in comments on my changes and testers of the library, especially the new features (QtDeclarative, Qt3D).
The repository’s description includes a workable description about how to generate the QtJambi wrapper on Windows, Linux and MacOSX. Have a lot of fun!

	Best regards,
Peter]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/16686</guid>
            <pubDate>Thu, 26 Apr 2012 16:54:30 GMT</pubDate>
        </item>
	
        <item>
            <title>PySide: &apos;QtGui.framework Library not Loaded&apos;</title>
            <link>http://qt-project.org/forums/viewthread/16622</link>
            <author>antarctica</author>
            <description><![CDATA[Trying to get PySide up and running

	First program (From tutorial)

	&amp;gt;&amp;gt;&amp;gt; import sys
&amp;gt;&amp;gt;&amp;gt; import PySide
&amp;gt;&amp;gt;&amp;gt; from PySide import QtGui
Traceback (most recent call last):
  File &#8220;&amp;lt;stdin&amp;gt;&#8221;, line 1, in &amp;lt;module&amp;gt;
ImportError: dlopen(/Library/Python/2.7/site&#45;packages/PySide/QtGui.so, 2): Library not loaded: QtGui.framework/Versions/4/QtGui
  Referenced from: /Library/Python/2.7/site&#45;packages/PySide/QtGui.so
  Reason: image not found

	I don&#8217;t understand why is accept the &#8216;import PySide&#8217; command but not the &#8216;from PySide import QtGui&#8217; command&#8230;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/16622</guid>
            <pubDate>Tue, 24 Apr 2012 21:34:26 GMT</pubDate>
        </item>
	
        <item>
            <title>[PySide]How to emit a multi&#45;arguments signal.</title>
            <link>http://qt-project.org/forums/viewthread/16614</link>
            <author>R.Ezoe@Japan</author>
            <description><![CDATA[Dear community,

	I got a TypeError: findPrevious(QString) only accepts 1 arguments, 3 given!

	but, I want to emit a multi&#45;arguments signal.
How can I do it?

	class FindDialog&#40;QtGui.QDialog&#41;:
&amp;nbsp;findPrevious = QtCore.Signal&#40;str, QtCore.Qt.CaseSensitive&#41;
&amp;nbsp;findNext = QtCore.Signal&#40;str, QtCore.Qt.CaseSensitive&#41;
&amp;nbsp;
&amp;nbsp;def findClicked&#40;self&#41;:
&amp;nbsp; text = self.lineEdit.text&#40;&#41;
&amp;nbsp; if self.caseCheckBox.isChecked:
&amp;nbsp; &amp;nbsp;cs = QtCore.Qt.CaseSensitive
&amp;nbsp; else:
&amp;nbsp; &amp;nbsp;cs = QtCore.Qt.CaseInsensitive
&amp;nbsp; if self.backwardCheckBox.isChecked:
&amp;nbsp; &amp;nbsp;self.findPrevious.emit&#40;text, cs&#41;
&amp;nbsp; else:
&amp;nbsp; &amp;nbsp;self.findNext.emit&#40;text, cs&#41;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/16614</guid>
            <pubDate>Tue, 24 Apr 2012 16:42:19 GMT</pubDate>
        </item>
	
        <item>
            <title>Compiling Qt Jambi for QT 4.8 fails</title>
            <link>http://qt-project.org/forums/viewthread/16406</link>
            <author>sarikan</author>
            <description><![CDATA[Greetings, 
I&#8217;ve cloned QT source code from git, and I&#8217;ve compiled it without any problems under Windows 7 64 bit, using Visual Studio 2008&#8217;s compiler, again 64 bit. 

	I&#8217;ve then cloned the jambi git repository, and followed instructions. Compilation began, and after about 20 minutes, it stopped with an error. The final bits of compilation output are here: http://pastebin.com/RzshLCQK 

	Google searches for the errors, such as &#8220;QAbstractTextDocumentLayout.java:292: cannot find symbol&#8221; leads to only one entry in pastebin. That makes me think that someone else tried the same thing, and they&#8217;ve also failed. 

	Here is the last few lines of the output, just in case it rings a bell (the complete list of errors is in the pastebin page)

	&#91;javac&#93; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^
&amp;nbsp; &amp;nbsp; &#91;javac&#93; c:\work\data\cPP\jambi\git\build\generator\out\java\com\trolltech\qt
\gui\QAbstractTextDocumentLayout.java:184: cannot find symbol
&amp;nbsp; &amp;nbsp; &#91;javac&#93; symbol &amp;nbsp;: class QTextObjectInterface
&amp;nbsp; &amp;nbsp; &#91;javac&#93; location: class com.trolltech.qt.gui.QAbstractTextDocumentLayout
&amp;nbsp; &amp;nbsp; &#91;javac&#93; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if &#40;!&#40;component instanceof QTextObjectInterface&#41;&#41; &#123;
&amp;nbsp; &amp;nbsp; &#91;javac&#93; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^
&amp;nbsp; &amp;nbsp; &#91;javac&#93; 19 errors
&amp;nbsp; &amp;nbsp; &#91;javac&#93; 1 warning
&amp;nbsp;
BUILD FAILED
c:\work\data\cPP\jambi\git\antfiles\java.xml:66: The following error occurred wh
ile executing this line:
c:\work\data\cPP\jambi\git\antfiles\jar.xml:85: Compile failed; see the compiler
&amp;nbsp;error output for details.


	Am I on the wrong track here? Is this a known issue?

	Best regards
Seref]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/16406</guid>
            <pubDate>Tue, 17 Apr 2012 01:29:10 GMT</pubDate>
        </item>
	
        <item>
            <title>Qt metamodel</title>
            <link>http://qt-project.org/forums/viewthread/16336</link>
            <author>msibnseddik</author>
            <description><![CDATA[Hello all!

	Does anyone already made a metamodel [en.wikipedia.org] of Qt?

	I planning on building one, but if someone already did, it will be easier and more productive to continue his/her work!

	Regards,
MSIS]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/16336</guid>
            <pubDate>Fri, 13 Apr 2012 09:08:12 GMT</pubDate>
        </item>
	

	</channel>
</rss>
