In Qt4 you should create a qrc file and use a proper URI to reach the resource from your code. What buttons are we talking about here anyway? Qt3 ones?