Deciding the height of a rectangle
Solved
Mobile and Embedded
-
I am working on this virtual keyboard panel (background rectangle basically) and the height is set to:
styleKeyboardPanel.keyHeight * 4 + styleKeyboardPanel.keySpacing * 3 + styleKeyboardPanel.padding
I am not sure how to get it to just fill the whole screen. I could add 500 to that and it fills the screen but I feel like there is probably a keyword for what I want. If the question is too vague let me know and I can post some code.
-
@Circuits I'm not sure I understand your question.
But you can use https://doc.qt.io/qt-5/qguiapplication.html#screens to get the list of available screens and then https://doc.qt.io/qt-5/qscreen.html to get the size of the screen.