# What is the true path for file?

**URL:** <https://linux-tips.com/t/what-is-the-true-path-for-file/339>\
**Category:** Programming\
**Created:** [April 18, 2016, 10:30am UTC](https://linux-tips.com/t/what-is-the-true-path-for-file/339 "2016-04-18T10:30:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saucompeng](https://linux-tips.com/user_avatar/linux-tips.com/saucompeng/32/176_2.png) [@saucompeng](https://linux-tips.com/u/saucompeng)\
**Post date:** [April 18, 2016, 10:30am UTC](https://linux-tips.com/t/what-is-the-true-path-for-file/339/1 "2016-04-18T10:30:15Z")

</div>

Hi;

I am using Qt5 on Raspberry Pi. I want to set a background-image for label and I am writing `barcodeLabel->setStyleSheet("background:none; background-image: Url('/home/image.gif'); ");` But image can’t show. What is the true local path for image file?

Note : I don’t use resource file.

---

<div class="post-metadata">

**Author:** ![Debuser](https://linux-tips.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@Debuser](https://linux-tips.com/u/Debuser)\
**Post date:** [April 18, 2016, 8:32pm UTC](https://linux-tips.com/t/what-is-the-true-path-for-file/339/2 "2016-04-18T20:32:35Z")

</div>

Gif support may not be included in your Qt build. Try with jpeg or png files too.

You should also check Qt plugin mechanism, you need to copy cross-compiled plugins to your board.

An easy way to debug Qt plugin loading problems, use `QT_DEBUG_PLUGINS=1` environment variable when starting your program. If you see any loading errors, you need to copy required files first.
