Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. getting QFrame real height
Qt 6.11 is out! See what's new in the release blog

getting QFrame real height

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 819 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
    celke
    wrote on last edited by
    #1

    I use a QFrame that shows to be around 50px once compiled, but QFrame.height() returns a value of 480. I can't see why and how I can get the real value rendered.

    JonBJ 1 Reply Last reply
    0
    • C celke

      I use a QFrame that shows to be around 50px once compiled, but QFrame.height() returns a value of 480. I can't see why and how I can get the real value rendered.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @celke
      Widgets' dimensions are only valid/reliable when the widget is showing. Believe what you find at runtime, not what you see at compile-time.

      1 Reply Last reply
      1

      • Login

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