<?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 1330758651**  </title>
  <link>http://qt-project.org/forums/viewforum/15/</link>
  <description>RSS feed for latest posts 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/all_forums/15" rel="self" type="application/rss+xml" />
  
  
  
        <item>
            <title>How to edit data in a TableModel/TableView?</title>
            <link>http://qt-project.org/forums/viewreply/86577</link>
            <author>AlekseyOk</author>
            <description><![CDATA[You should override flags() method from QAbstractItemModel.
Qt::ItemFlags Model::flags&#40;const QModelIndex &amp;amp;index&#41; const
&#123;
&amp;nbsp; &amp;nbsp; Qt::ItemFlags defaultFlags = QAbstractItemModel::flags&#40;index&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; if &#40;index.isValid&#40;&#41;&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Qt::ItemIsEditable | defaultFlags;
&amp;nbsp; &amp;nbsp; else
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return defaultFlags;
&#125;


	Sorry for c++ code))]]></description>
            <guid isPermaLink="false">59e10712f22f6eccf6576145e5c8b481</guid>
            <pubDate>Wed, 23 May 2012 22:28:42 GMT</pubDate>
        </item>
  
        <item>
            <title>[Solved] Qt &#45; How to select item in tree widget?</title>
            <link>http://qt-project.org/forums/viewreply/86574</link>
            <author>needhelp_gh</author>
            <description><![CDATA[Nvm, got it:
if a != &amp;quot;&amp;quot;:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list = tree2.findItems&#40;a, QtCore.Qt.MatchExactly, 0&#41;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for i in list:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree2.setCurrentItem&#40;i&#41;


	Hope that helps for anyone else!! :)]]></description>
            <guid isPermaLink="false">9199478971ce3cb7961912f7200ef7f4</guid>
            <pubDate>Wed, 23 May 2012 22:11:19 GMT</pubDate>
        </item>
  
        <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">0c4c7e8d81ac360aa940fde58fc22331</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">78d2f4209cf4747d8cc0e5a331c7e34a</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">edcac6d18cc6d8ef6855ea9d288e64a8</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">376e4e2ede0f36e8d7de1eb6585eef68</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">5d7f1884beb9e4f6ad24a1e29d297df4</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/viewreply/86223</link>
            <author>Overflow012</author>
            <description><![CDATA[Hello CeesZ,

	Looks great I will try!]]></description>
            <guid isPermaLink="false">239a01d5daa477acd9d2fd8f07a68c50</guid>
            <pubDate>Sun, 20 May 2012 18:21:04 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">4160bc2a20e82588eb7b05d2eeb3dce9</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">c081d076107857d47da56b084539f2e7</guid>
            <pubDate>Wed, 16 May 2012 18:18:49 GMT</pubDate>
        </item>
  

  </channel>
</rss>
