Saturday, July 5th 2008, 6:32am UTC+1

You are not logged in.

  • Login
  • Register

1

Wednesday, January 23rd 2008, 4:00pm

Resources cannot be read under Designer

I have created QWidget, resources and set the prefix as /files and add one image,
then in StyleSheet Editor I set

Source code

1
background-image: url(:/files/m_bottom.png)


the background should be seen - it's not, so I used absolute path by what I have avoided resources:

Source code

1
background-image: url(/root/Desktop/files/m_bottom.png);

this way the background is displayed

the same issue under Windows - but much worse, I can't set any path which makes Designer to display the image, but it's fine during run-time.

That forced me to use Designer under X11 - still the half expected not working as should
  • Go to the top of the page

macabre13

Trainee

Posts: 127

Location: Poland/ Wroclaw

Occupation: sw developer

2

Wednesday, January 23rd 2008, 4:04pm

silly question, did you try with:
url(":/files/m_bottom.png")
- ebm - noise - industrial -
I always could be wrong.
Lets share knowledge!
  • Go to the top of the page

3

Wednesday, January 23rd 2008, 4:08pm

it's not allowed to use "...." there, Invalid Style Sheet
  • Go to the top of the page

Rate this thread