Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get fit size ??
Qt 6.11 is out! See what's new in the release blog

How to get fit size ??

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 258 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.
  • P Offline
    P Offline
    Pada_
    wrote on last edited by
    #1

    I am using Qt 5.4 Liunx 64 bit.

    Next is QTextEdit.
    TextEdit can decorate text.

    76ff43fe-0c58-4b79-a94a-7468cf8f71b7-image.png

    I want a square size that fits the written text.

    In the next picture, I want to get a rectangular area that will not have the scroll bar as much as a blue rectangular box.

    4b1402c8-1633-4b5f-ac16-02fff1f0e75b-image.png
    QTextEdit-> toPlainText (); I applied it to fontMatrix as text, but I can't get it.

    Is there a novel way to find the area where the scroll bar will not be created?

    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