Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Deciding the height of a rectangle
Qt 6.11 is out! See what's new in the release blog

Deciding the height of a rectangle

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 417 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Circuits
    wrote on last edited by Circuits
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • C 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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Circuits
        wrote on last edited by
        #3

        That's okay, turns out that the functionality I thought I was looking actually isn't going to work, thanks anyway!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved