Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qtextcursor

    Log in to post
    • All categories
    • V

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

      2
      0
      Votes
      2
      Posts
      131
      Views

      SGaist

      Hi,

      Please provide a minimal compilable example to reproduce your issue.

    • K

      Unsolved Customizing a QPLainText widget or creating a new one
      General and Desktop • qplaintextedit qwidget datastructures qtextcursor qtextdocument • • kaliy23

      3
      0
      Votes
      3
      Posts
      333
      Views

      K

      @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.

    • D

      Solved Stop QTextCursor from resetting undo stack
      General and Desktop • qplaintextedit qtextcursor undo stack • • dhamith93

      1
      0
      Votes
      1
      Posts
      301
      Views

      No one has replied

    • B

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

      16
      0
      Votes
      16
      Posts
      15065
      Views

      B

      @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.

    • michalos

      Solved Unable to click on hiperlinks in QTextBrowser edited by QTextDocument
      General and Desktop • qtextbrowser qtextcursor • • michalos

      2
      0
      Votes
      2
      Posts
      583
      Views

      michalos

      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.

    • Sikarjan

      Unsolved QTextCurser WordUnderCursor does not return word
      General and Desktop • qtextcursor • • Sikarjan

      1
      0
      Votes
      1
      Posts
      342
      Views

      No one has replied

    • M

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

      5
      0
      Votes
      5
      Posts
      3790
      Views

      M

      @SGaist
      Good idea, I hadn't considered that approach.
      Thanks for the help!

    • Joel Bodenmann

      Unsolved QPlainTextEdit center on custom cursor
      General and Desktop • qplaintextedit qtextcursor • • Joel Bodenmann

      5
      0
      Votes
      5
      Posts
      3520
      Views

      micland

      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...)

    • T

      Unsolved QTextCursor and CSS: Problem with text-indent property
      General and Desktop • css qtextcursor • • Tyras

      15
      0
      Votes
      15
      Posts
      5026
      Views

      T

      Done.

      https://forum.qt.io/topic/64346/qtextdocument-and-multithreading

    • M

      QTextDocument serialization
      General and Desktop • qtextdocument serialization qtextcursor • • Milovidov

      1
      0
      Votes
      1
      Posts
      688
      Views

      No one has replied

    • F

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

      7
      0
      Votes
      7
      Posts
      4786
      Views

      F

      Applied to my code, marked as [SOLVED]. Thank you once again!

    • N

      QTextCursor of QTextEdit: How to set Blink-rate or turn off?
      General and Desktop • qtextcursor qtextedit blink • • ndbd

      4
      0
      Votes
      4
      Posts
      1996
      Views

      SGaist

      You can try taking a look at QTextDocument::drawCursor