Unsolved Detect orientation y change background Image
-
Hi everyone, I'm learning to develop applications for android qt, and i tried to do a login dialog, i create 2 png, one of them with vertical orientation and another horizontal,
I need you when the phone or tablet change orientation, it's change background and resize and reorder 2 QLineEdit and 1 QPushbutton. Sorry my bad english ,I hope explained well, Thank you -
You have your dialog class derived from QDialog and you should have a custom paintEvent() defined for it. When the orientation changes you will get your paintEvent() called. There you can check the dimensions of your dialog, compare height and with and paint the background appropriately. The size should reflect the orientation if your dialog is fullscreen).
-
This post is deleted!