You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kjsembed/tests/test_pixmap_slots.js

12 lines
197 B

#!/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();