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. Create text display with syntax highlighting

Create text display with syntax highlighting

Scheduled Pinned Locked Moved Unsolved General and Desktop
helptextareasyntax highligh
2 Posts 2 Posters 300 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.
  • I Offline
    I Offline
    IGaming73
    wrote on 14 Mar 2024, 06:35 last edited by
    #1

    Hello,
    I was wondering if it was possible with Qt Designer or via PyQt5 to create a text display with syntax highlighting for C++ code, so thqt the code would be easier to read for the user.
    Thanks for your answer.

    J 1 Reply Last reply 14 Mar 2024, 06:37
    0
    • I IGaming73
      14 Mar 2024, 06:35

      Hello,
      I was wondering if it was possible with Qt Designer or via PyQt5 to create a text display with syntax highlighting for C++ code, so thqt the code would be easier to read for the user.
      Thanks for your answer.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 14 Mar 2024, 06:37 last edited by
      #2

      @IGaming73 See https://doc.qt.io/qt-6/qsyntaxhighlighter.html and https://doc.qt.io/qt-6/qtwidgets-richtext-syntaxhighlighter-example.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      1/2

      14 Mar 2024, 06:35

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved