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. Layout problems
Forum Updated to NodeBB v4.3 + New Features

Layout problems

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 164 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
    Chris King 57
    wrote on 13 Sept 2024, 17:46 last edited by
    #1

    I would like to create a dialog that contains a QTextEdit.
    I would like that text edit to be 3 text lines high to start but it should expand if the user expands the dialog.
    I think I want to set the "preferred height". I don't see any API for this. How do I do this?
    My dialog always computes its size so that the text edit is about 10 lines high. The text edit is the only thing in my dialog that can be dynamically sized.
    Thanks,
    Chris

    1 Reply Last reply
    0

    1/1

    13 Sept 2024, 17:46

    • Login

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