summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_pixmap_slots.js
blob: f2ca40fabc50c566cc844ce5264a8ecfd6ac5254 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env kjscmd

var img = new Image();
img.load("test.png");

var pix = img.pixmap();
var btn = new QToolButton(this);
btn.pixmap =  pix;
btn.setIcon( pix );
btn.show();
application.exec();