cancel
Showing results for 
Search instead for 
Did you mean: 

Qr Code not working in TouchGFX, shows previous screen instead in that area

furqanbari431
Associate II

Hi,

I am new on TouchGFX and UI making, i have make many screens with transition in between i want to add a qr Code,

furqanbari431_0-1767960562885.jpeg


But when I just add a default qrcode no edit, but it dont show any thing, on that screen but when i change screen to different one and come back again the previous screen content print on qr code area.
First screen:

furqanbari431_1-1767960623506.jpeg

Qr screen: in the qr area the previous screen pixel shown

furqanbari431_2-1767960675481.jpeg

Qr next screen: when we go to next screen and again come back it again shows same issue.

 

furqanbari431_3-1767960750321.jpeg

furqanbari431_4-1767960758364.jpeg



or if we set the qr screen as startup it shows black completely in the qr region.

 

furqanbari431_6-1767960953220.jpeg


Kindly tell which issue causing this, as i does following troubleshoot from my sie;

1- use the invalidate in constructor, setup screen of view, and with screen coding in view file.

2- try to look every possible options like change qr versions, scale, ECC. mostly every option

3- try https://www.qrcode.com/en/about/version.html qr version table combitions to correctly check

4- change screens and try on different projects.

screen 1: w:230 and h:303

screen 2: w:320 and h:240

both are monochrome lcds

Also try in both touchgfx desiners 4.25 and 4.26

 

 

 

 

 

7 REPLIES 7
JohanAstrup
ST Employee

Hello @furqanbari431.

What happens when you run the simulator? Can you share your project?

Best regards,
Johan

MM..1
Chief III

TochGFX isnt optimized for monochrome, plus here isnt used framebuffer or LTDC. Maybe you have SPI...

Best way is show your code and read QR Code | TouchGFX Documentation

 

Hi john,
me furqan bari recently you reply on my issue in community,
i cant share the project of this, as it a company project and i cant share it as per policy,

although you asked about simulator, it cant run, whenever i run it, it give error run simulator failed, as some other persons have work on it before, now i am continue it, So for now all the other screens are working on physicsl screen, but not on simulator.

Is their any questions or other options to fix qr issue.

 

Yes our lcd use spi communication, so is their any solution for monochrome lcd, or their any drivers you know if any.
Thank you for your contribution.

JohanAstrup
ST Employee

OK, understood. It is a bit difficult to help you fix the issue then. I can create an example to show that it works in a blank project, but that does not really help you in your current situation.

However, we can maybe try to work around the issue.
Does the QR code need to be dynamic or can it just be static? And do you have extra flash memory available? If so, you could try to replace the QR code widget with an image of the QR code instead of generating it dynamically.

Best regards,
Johan

 

Yes i have the extra flash memory, but the qr generation is dynamic in my project.

JohanAstrup
ST Employee

And there is no way for you to fix the simulator in your current project?
Alternatively, would it be possible for you to import your GUI into a new blank project and run the simulator there?

Best regards,
Johan