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. QGraphicsItem text browser?
Forum Updated to NodeBB v4.3 + New Features

QGraphicsItem text browser?

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

    Hello,

    I've been looking at implementing a QGraphicItem that behaves like a QTextEdit / QTextBrowser.
    My requirement is to have the text auto formatted with scroll bars based on the size of the item.

    I've found the QGraphicsTextItem but I cannot figure out a way to have the scroll bar feature on it.
    Is that even possible without completely re writing the entire thing from scratch?

    At the moment, I'm using a QProxyWidget on my QGraphicsItem and I switch between a QTextBrowser and QTextEdit when needed.
    It feels a bit heavy and unnecessary but that's actually the only way I've found that works as expected.

    Any idea?

    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