Skip to content

Background flashing on page change #19

@ferropasha

Description

@ferropasha

I am trying to build a simple application, that should allow a user to view a sequence of images from a certain directory. For usability reasons in my app I can't resort to the most simple way of loading a bunch of images like
v.loadImages(glob.glob("*.jpg"))

and then just allow a user to scroll through them.
I need the app to perform some actions every time an image changes in the view depending on some attributes of said image and user's input. So I have to load images one at a time to implement the logic I need. I do it with a function, connected to Qbutton in my GUI.

def function_to_load_new_page(pagename):
self.v.clear()
self.v.loadImages(glob.glob(pagename))

The problem is every time I load a new image it doesn't replace previous one smoothly but after a flash of white background, which isn't great from UX standpoint.
Is there any way to achieve smooth transition after image changes? Am I doing something wrong in terms how I go about loading them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions