You need to create your own widget or graphics item (as you should probably use Graphics View and not widgets).