Skip to content

No jpg files visible #5

@ajvperth

Description

@ajvperth

Hello,
thank you very much for all your efforts to create this script.
I have it working on openSUSE 15.6 in VirtualBox. It seems to work fine, it visualise *.png but not jpg.
I created a small test program do demonstrate this.
`
import os
from PySide6.QtWidgets import QApplication, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QPushButton, QLineEdit
from PySide6.QtGui import QPixmap, QIcon

class GUI(QWidget):

def __init__(self):
    self.app      = QApplication([])                # Qt framework
    super().__init__()
    self.resize(600, 370)                          # main window
    lo_main = QVBoxLayout(self)

    bg1  = QPixmap('background_scotland.jpg')
    lbl1 = QLabel()
    lbl1.setPixmap(bg1)
    lo_main.addWidget(lbl1)

    bg2 = QPixmap('owl_75.png')
    lbl2 = QLabel()
    lbl2.setPixmap(bg2)
    lo_main.addWidget(lbl2)

    btn = QPushButton(f'Button 1')
    btn.setIcon(QIcon('owl_75.png'))
    lo_main.addWidget(btn)
    
    le1 = QLineEdit()							# jpg object
    lo_main.addWidget(le1)
    le2 = QLineEdit()							# png object
    lo_main.addWidget(le2)
    le3 = QLineEdit()							# files
    lo_main.addWidget(le3)
    
    le1.setText(f'{bg1}')
    le2.setText(f'{bg2}')
    le3.setText(f'{os.listdir()}')


    self.show()

gui = GUI()
gui.app.exec()
`

please see attachment for result under linux and android.

Image

Image

as you see, under Linux both png and jpg files are visible, on android the png only.
the bottom lineEdit shows the directory listing, the jpg file is available
the top lineEdit = null, indicating it is not loaded
do you have any suggestions how to proceed?

Anthony

remark: there is no problem on android if I open the jpg file in the file manager.
*.svg files are also not visible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions