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. QTextEdit Zoom Not Working after SetHTML

QTextEdit Zoom Not Working after SetHTML

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 489 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    GeminiMan
    wrote on last edited by
    #1

    Hello,

    Guys i have i big problem, i think is coming from qt source code may be.
    when i set Html code in QTextedit, the zoom method stop working but when i use the setPlainText it's working. what do you think ??? i need setHTML in my program.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt are you using ?
      On which OS ?
      Can you provide a minimal compilable example that shows that behaviour ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GeminiMan
        wrote on last edited by GeminiMan
        #3

        Qt 5.15.0 i found the solution you need to delete the font in html style document that is generated by Qtextedit:

        text { text.remove("font-size:10pt;") };
        

        so if any body have the problem when you clear the qtextedit and you load a file with SetHtml the zoom method is disable.

        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