Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. wrap
    Log in to post

    • UNSOLVED How do I get crowded QLegend items to wrap?
      General and Desktop • qchart qlegend wrap • • mmikeinsantarosa  

      5
      0
      Votes
      5
      Posts
      872
      Views

      hi @mmikeinsantarosa .could you resolve this issue?how did u make all the legends visible ?thank you.
    • UNSOLVED Add custom text wrap logic to QPlainTextEdit
      General and Desktop • widget qplaintextedit editor wrap wrapmode • • Arthur Araruna  

      3
      0
      Votes
      3
      Posts
      671
      Views

      Apparently it is virtually impossible to do what I want because the QTextBlock itself hardcodes a QTextLayout in its ::layout() method (see here). Moreover, it seems that every hook we could use is only available in the private classes... Now, the problem is that it prevents everybody wanting to implement custom behavior to create anything based on the QTextDocument and its associates. I wonder how the people who created text editors got away with this (probably implemented everything from scratch). Well, at the end, the only thing I found that could work was to manually insert unicode U+002028 (Line Separator) wherever I want using QTextCursor, which is terrible because everytime the editor area width changes I have to remove the old ones and insert new ones... As I'm not happy with the solution I found, I'll not mark this question as solved.
    • QML crash QObjectWrapper::wrap / getProperty
      QML and Qt Quick • qml qtquick crash binding wrap getproperty • • Pheelbert  

      4
      0
      Votes
      4
      Posts
      2088
      Views

      @chrisadams I think so, I ended up reacting to a signal (from the collection of 'machines') instead of using a timer and I don't have an issue anymore!