Version: 1.7.0 (using KDE 4.0.1) Installed from: Unspecified Compiler: Fedora 6 OS: Linux p=new Picture(window,url) returns error kst> url="http://extragear.kde.org/apps/kst/images/kstdemo.png" http://extragear.kde.org/apps/kst/images/kstdemo.png kst> w=new Window() Window kst> p=new Picture(w,url) Error: SyntaxError: Picture: Unexpected number of arguments. The picture cannot be created and placed in the specified window
Modified documentation in bind_picture.h
The same error still exists kst> url="http://extragear.kde.org/apps/kst/images/kstdemo.png" http://extragear.kde.org/apps/kst/images/kstdemo.png kst> w=new Window() Window kst> p=new Picture(w,url) Error: SyntaxError: Picture: Unexpected number of arguments.
The documentation now states that the constructors are: Picture ( parent ) Picture ( window ) In order to create a picture you need to do the following: w=new Window() p=new Picture(w) url="http://extragear.kde.org/apps/kst/images/kstdemo.png" p.load(url)