PDA

View Full Version : Qt Designer Style Sheet Resources



bjoernbg
23rd January 2007, 17:37
Hello everyone,

I'm really new to Qt and am trying to explore the styling capabilities of Qt 4.2. I read that with Qt Designer it is easy to test your CSS. Indeed it is easy to test most of the CSS - just nothing that includes pictures. I suspect that this is due to the resource system but I haven't found a way to make it work. The files that I reference in the CSS just aren't displayed at all!

Here is a bit of CSS syntax:

QButton {
background-image: url(:/images/bg.png);
}

Can anyone please tell me what I'm doing wrong here?
Thanks everyone!

e8johan
24th January 2007, 07:12
I would suspect that this is due to Designer not loading the resources being created. Does the CSS work if you build the design as a part of a project?