[Kde-bindings] [Bug 305515] New: qtruby can't be used with QML, return type of QAbstractItemModel::roleNames is unrecognized
Florian Staudacher
florian_staudacher at yahoo.de
Mon Aug 20 21:00:25 UTC 2012
https://bugs.kde.org/show_bug.cgi?id=305515
Bug ID: 305515
Severity: major
Version: unspecified
Priority: NOR
Assignee: kde-bindings at kde.org
Summary: qtruby can't be used with QML, return type of
QAbstractItemModel::roleNames is unrecognized
Classification: Unclassified
OS: Linux
Reporter: florian_staudacher at yahoo.de
Hardware: Compiled Sources
Status: UNCONFIRMED
Component: general
Product: bindings
Hi!
I already reported this issue to the kde-bindings mailing list [1] a while ago.
Now I waited for KDE 4.9 to be released and re-pulled and re-built smokegen,
smokeqt and qtruby from source, but I still cannot use an ItemModel written in
QtRuby together with QML.
You can get more details by looking at my post to the mailing list
[1] http://lists.kde.org/?l=kde-bindings&m=134165976025397&w=2
Reproducible: Always
Steps to Reproduce:
run the following ruby snippet:
require 'Qt4'
model = Qt::AbstractListModel.new
model.role_names
Actual Results:
this is the error message that is produced
classname == QAbstractListModel
:: method == setRoleNames
-> methodIds == [#<Qt::Internal::ModuleIndex:0x00000002138970 @smoke=0,
@index=282>]
candidate list:
void QAbstractItemModel::setRoleNames(const QHash<int,QByteArray>&)
(smoke: 0 index: 282)
matching => smoke: 0 index: 282
const QHash<int,QByteArray>& (U)
match => 282 score: 1
Resolved to id: 282
setCurrentMethod(smokeList index: 0, meth index: 282)
test.rb:282:in `method_missing': Cannot handle 'const QHash<int,QByteArray>&'
as argument of QAbstractItemModel::setRoleNames (ArgumentError)
Expected Results:
I should be able to use a model class from Ruby code with QML just like it
always works with C++
$ kde4-config --version
Qt: 4.8.2
KDE: 4.9.00
kde4-config: 1.0
KDE and Qt are from Archlinux packages,
smokegen, smokeqt and qtruby are compiled from git master
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kde-bindings
mailing list