Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Deciding the height of a rectangle
Circuits last edited by Circuits
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.
Circuits last edited by
That's okay, turns out that the functionality I thought I was looking actually isn't going to work, thanks anyway!