[Kde-bindings] [Bug 302672] New: qtruby exception when accessing QStyleOption::state (ArgumentError)

Florian Staudacher florian_staudacher at yahoo.de
Thu Jun 28 00:22:05 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=302672

            Bug ID: 302672
          Severity: major
           Version: unspecified
          Priority: NOR
          Assignee: kde-bindings at kde.org
           Summary: qtruby exception when accessing QStyleOption::state
                    (ArgumentError)
    Classification: Unclassified
                OS: Linux
          Reporter: florian_staudacher at yahoo.de
          Hardware: Other
            Status: UNCONFIRMED
         Component: general
           Product: bindings

I am using 
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux], compiled with RVM,
and I have compiled qtruby from git (without phonon),
on Fedora 16.

When I try to run the pixelator example I get the following error:
`method_missing': Cannot handle 'QFlags<QStyle::StateFlag>&' as return-type of
QStyleOption::state (ArgumentError)

As far as googling for that error message goes, it seems this is generated by
smoke...

This is bad, because a packaged example doesn't work(!), 
and it completely breaks the rendering of custom item delegates with a little
complexity.

Reproducible: Always

Steps to Reproduce:
1. use ruby 1.9.3 and qtruby from git
2. prepare to run the pixelator example (rcc the resources, etc.)
3. run the pixelator example
Actual Results:  
ruby exited with the above mentioned error

Expected Results:  
show the pixelator example

A very stripped down script, which, for me, reproduces the error every time,
would be:

require 'Qt4'
test = Qt::StyleOption.new
puts test.state

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-bindings mailing list