Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QTextEdit()Add lookup list
Qt 6.11 is out! See what's new in the release blog

QTextEdit()Add lookup list

Scheduled Pinned Locked Moved Unsolved Qt for Python
6 Posts 3 Posters 1.1k 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.
  • P Offline
    P Offline
    PythonQTMarlem
    wrote on last edited by
    #1

    Hello,
    When you program Python with Pycharm and you press the Ctrl + Space keys, a list of Python objects and commands is displayed.

    I would like to add such a list to QTextEdit().

    Ask:
    Is that possible ? If yes how?

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

      Hi,

      Are you trying to build a code editor ?

      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
      • P Offline
        P Offline
        PythonQTMarlem
        wrote on last edited by
        #3

        not quite. I save typing because of my physical disability.

        table: 2 5 False → Creates an HTML table with 2 columns and 5 rows without color.

        or

        css_grid: 2 1700 0 column_1 column_2

        creates a CSS grid with 2 columns.

        my Python Qt software can have commands and I would like to display these commands using a drop-down list.

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

          Sounds like a job for a QAction coupled with maybe a contextual QMenu.

          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
          • P Offline
            P Offline
            PythonQTMarlem
            wrote on last edited by
            #5

            Thank you for the tips!

            1 Reply Last reply
            0
            • ewerybodyE Offline
              ewerybodyE Offline
              ewerybody
              wrote on last edited by
              #6

              Have you had a look at the pyQode project?
              https://github.com/pyQode/pyqode.core

              I can't point you to the exact point now. But surely this is done with pyQode!

              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