Results 1 to 2 of 2

Thread: Resource files not showing on Ubuntu 16.04

  1. #1
    Join Date
    Apr 2020
    Posts
    3
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Resource files not showing on Ubuntu 16.04

    Hi.
    I write an application on my main system (Ubuntu 18.04) and build the executable in a virtual machine (Ubuntu 16.04). I synchronize the two projects via a github repository. When running my project in debug mode on Ubuntu 18.04 everything works and all icons show up. However when doing the same on the Ubuntu 16.04 system none of the items are visible in the UI of the application.
    I make the Appimages with linuxdeployqt.

    Things I've tried:
    - Run qmake
    - Rebuild the project
    - In the source code when hovering the mouse cursor above the resource path the correct images get previewed
    - All the icon files are added to the .qrc file
    - There is only one .qrc file
    - The icons are missing in the in-application build as well as in the generated Appimage file when executing it on Ubuntu 16.04 and Ubuntu 18.04

    The icons are in the .svg vector graphics, could that be the problem?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Resource files not showing on Ubuntu 16.04

    So you have built on 18.04, made a deployment package on 18.04 using a third-party tool, deployed that package on 16.04, and you do not see the SVG icons.

    If you are using the QRC file correctly then resources are built in to the executable; they cannot be missing but they will not be files in the deployment bundle either. If you are explicitly loading them, then you should be referring to them by the pseudo-path "qrc:///images/someicon.svg" and not some relative path like "images/someicon.svg"

    Check that the third party tool has placed ".../imageformats/libqsvg.so" and/or ".../iconengines/libqsvgicon.so" in the deployment package. If it hasn't then there are options to force it to do so.
    Last edited by ChrisW67; 15th April 2020 at 00:34.

  3. The following user says thank you to ChrisW67 for this useful post:

    EVARATE (15th April 2020)

Similar Threads

  1. Replies: 2
    Last Post: 8th September 2018, 09:24
  2. Replies: 3
    Last Post: 31st August 2015, 21:25
  3. integrated + binary resource files
    By Le_B in forum Qt Quick
    Replies: 0
    Last Post: 5th June 2011, 17:45
  4. QDir::setCurrent with resource files
    By LarryERamey in forum Qt Programming
    Replies: 3
    Last Post: 20th April 2011, 03:21
  5. How to compile qt resource files?
    By yangyunzhao in forum Qt Programming
    Replies: 1
    Last Post: 10th August 2009, 07:46

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.