cancel
Showing results for 
Search instead for 
Did you mean: 

Touchgfx change complete screen during run time and customized widget creation

Hello, I and using Touchgfx in my project. I want to implement below.

1) During run time , I want to to turn off complete screen.

2) During run time , I want to change complete screen.

3) I want to generate QR code dynamically and also want to clear it sometimes during run time. I got github link and added those files in my project. Still I am not sure how to call it. You have mentioned to call qrCode.setXY(0,0) , qrCode.setQRCode(&code), qrCode.setScale(4) , add(qrCode) methods but I am unable to find it.

Can any one please help ?

50 REPLIES 50
SC9
Associate II

Ref Code from above attached file
ScreenView.C

void Screen1View::setupScreen()

{

Screen1ViewBase::setupScreen();

add(QRCode);

updateQR("Hello"); //Successfully Generates QR Code for "Hello"

}

 

//Calling updateQR(char* string,uint8_t size) through modelListener

void Screen1View::updateQR(char* string)

{

QRCode.setScale(4);

QRCode.setQRCodeVersion(5);

QRCode.setErrorCorrectionLevel(qrcodegen_Ecc::qrcodegen_Ecc_LOW);

QRCode.convertStringToQRCode(string);

resizeScreen();

QRCode.setXY(38, 38);

QRCode.invalidate(); //Here I am unable to generate QR Code from string received via UART.

}