[Kde-bindings] operator<< not found for QDataStream and QPixmap in Qtruby

Ryan Melton ryanmelt at gmail.com
Tue Sep 21 04:02:09 UTC 2010


I am going through each of the Qtruby examples and working through the
problems.
The draggableicons example fails because the operator<< is not found for
QDatastream and QPixmap.
Smoke for qtgui does contain the method, but it isn't being found for some
reason.

Here is a piece of code that shows the problem:

require 'Qt'

Qt::Application.new(ARGV)

pixmap = Qt::Pixmap.new
itemData = Qt::ByteArray.new("")
dataStream = Qt::DataStream.new(itemData, Qt::IODevice::WriteOnly.to_i)

dataStream << pixmap

----------

/Users/ryanmelt/git/qtbindings/lib/Qt/qtruby4.rb:126:in `method_missing':
undefined method `<<' for Qt:Module (NoMethodError)
    from /Users/ryanmelt/git/qtbindings/lib/Qt/qtruby4.rb:126:in `<<'
    from datastream_and_pixmap.rb:9:in `<main>'

----------

Any ideas?

Thanks,
Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100920/6e76aa3c/attachment.html>


More information about the Kde-bindings mailing list