Navigation

    Qt Forum

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

    • UNSOLVED Alignment of image and text in QTextTable
      General and Desktop • qtextcursor alignment qtexttable • • voltron  

      2
      0
      Votes
      2
      Posts
      37
      Views

      Hi, Please provide a minimal compilable example to reproduce your issue.
    • UNSOLVED Customizing a QPLainText widget or creating a new one
      General and Desktop • qwidget qplaintextedit qtextdocument qtextcursor datastructures • • kaliy23  

      3
      0
      Votes
      3
      Posts
      177
      Views

      @jsulm, I apologize, I should've mentioned it in the original post: one of the requirements of the project is that we can not use any 3rd party library for the text editor, except for Qt. From what I see in the QScintilla github, it is ported to Qt on top of the TextEdit widget, so I will look further into their implementation to figure out how they've done it.
    • SOLVED Stop QTextCursor from resetting undo stack
      General and Desktop • qplaintextedit qtextcursor undo stack • • dhamith93  

      1
      0
      Votes
      1
      Posts
      215
      Views

      No one has replied

    • UNSOLVED QObject::connect: Cannot queue arguments of type 'QTextCursor'
      General and Desktop • qtextedit connect multithreading qtextcursor process • • bachir  

      16
      0
      Votes
      16
      Posts
      12638
      Views

      @kshegunov Right... Thanks, something didnt trigger in the brain. Now its fine: connect(uap, &CUaProxy::uaItemChanged, this, [this, i]( const CUaProxy::MsgType msgt, const int riskIndex, const QVariant& value) { this->onUaMsgReceived(msgt, i, riskIndex, value); }, Qt::QueuedConnection); Also needed Qt::QueuedConnection eventually.
    • SOLVED Unable to click on hiperlinks in QTextBrowser edited by QTextDocument
      General and Desktop • qtextcursor qtextbrowser • • michalos  

      2
      0
      Votes
      2
      Posts
      535
      Views

      The solution was to set the text browsers setTextInteractionFlags() to (textInteractionFlags() | Qt::LinksAccessibleByMouse). In my case: textBrowserReadConversation->setTextInteractionFlags(textBrowserReadConversation->textInteractionFlags() | Qt::LinksAccessibleByMouse | Qt::LinksAccessibleByKeyboard); I found the solution here: https://forum.qt.io/topic/70075/qtextbrowser-anchorclicked-not-emitted/2 But I'll leave the topic, because it was hard for me to find it through google or the search engine on this forum.
    • UNSOLVED QTextCurser WordUnderCursor does not return word
      General and Desktop • qtextcursor • • Sikarjan  

      1
      0
      Votes
      1
      Posts
      293
      Views

      No one has replied

    • SOLVED Multiline text in QTextDocument table cells
      General and Desktop • qtextdocument qtextcursor qtexttableform • • mdelaere  

      5
      0
      Votes
      5
      Posts
      3320
      Views

      @SGaist Good idea, I hadn't considered that approach. Thanks for the help!
    • UNSOLVED QPlainTextEdit center on custom cursor
      General and Desktop • qplaintextedit qtextcursor • • Joel Bodenmann  

      5
      0
      Votes
      5
      Posts
      3138
      Views

      I played around with scrollbar calculation a long time ago and I remember that it was a bit confusing. But AFAIR you have to set the QScrollBar::setValue() relative to QScrollBar::maximum() with the same ratio as QAbstractScrollArea::widget()::height() / calculatedPos. (not sure - just guessing...)
    • UNSOLVED QTextCursor and CSS: Problem with text-indent property
      General and Desktop • css qtextcursor • • Tyras  

      15
      0
      Votes
      15
      Posts
      4715
      Views

      Done. https://forum.qt.io/topic/64346/qtextdocument-and-multithreading
    • QTextDocument serialization
      General and Desktop • qtextdocument serialization qtextcursor • • Milovidov  

      1
      0
      Votes
      1
      Posts
      593
      Views

      No one has replied

    • Manipulating selection with QTextCursor and QTextEdit [SOLVED]
      General and Desktop • qtextedit qtextcursor • • frankiefrank  

      7
      0
      Votes
      7
      Posts
      4216
      Views

      Applied to my code, marked as [SOLVED]. Thank you once again!
    • QTextCursor of QTextEdit: How to set Blink-rate or turn off?
      General and Desktop • qtextedit qtextcursor blink • • ndbd  

      4
      0
      Votes
      4
      Posts
      1859
      Views

      You can try taking a look at QTextDocument::drawCursor