Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to make IntelliSense Code Completion to QPlainText
Forum Updated to NodeBB v4.3 + New Features

How to make IntelliSense Code Completion to QPlainText

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 3 Posters 998 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.
  • E Offline
    E Offline
    ELEMENTICY
    wrote on last edited by
    #1

    I wanna make a Code Editor.For now i already made Syntax Highlighting,save,open,file explorer etc..

    And now i need to make a Completer for it.But i searched on google.I couldt find any result i want.All of them are QCompleter for lineedit.I was wanna decided to make it become lineedit before.

    But i made too much thing on plaintext,and some of the feature is only for PlainText,linedit doesnt have it.

    So Im here to search for help,anyone please help me.

    Sorry for bad english.
    Thanks alot = )

    1 Reply Last reply
    0
    • E Offline
      E Offline
      ELEMENTICY
      wrote on last edited by
      #2

      My UI Name ui->codingarea

      JonBJ 1 Reply Last reply
      0
      • E ELEMENTICY

        My UI Name ui->codingarea

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by JonB
        #3

        @ELEMENTICY
        If you want a QCompleter attached to a QPlainTextEdit (I think that's what you're saying) have a look at https://stackoverflow.com/questions/51912270/qplaintextedit-and-qcompleter-focus-issue. I don't know whether that's good, or how much of the code you need, but I think it's showing how to wrap the QPlainText inside a QWidget so that you have a QCompleter?

        E 1 Reply Last reply
        0
        • JonBJ JonB

          @ELEMENTICY
          If you want a QCompleter attached to a QPlainTextEdit (I think that's what you're saying) have a look at https://stackoverflow.com/questions/51912270/qplaintextedit-and-qcompleter-focus-issue. I don't know whether that's good, or how much of the code you need, but I think it's showing how to wrap the QPlainText inside a QWidget so that you have a QCompleter?

          E Offline
          E Offline
          ELEMENTICY
          wrote on last edited by
          #4

          @JonB its for python tho,My Application is using C++ language.

          jsulmJ JonBJ 2 Replies Last reply
          0
          • E ELEMENTICY

            @JonB its for python tho,My Application is using C++ language.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @ELEMENTICY said in How to make IntelliSense Code Completion to QPlainText:

            its for python tho,My Application is using C++ language.

            It's same for C++, just different syntax...

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

            E 1 Reply Last reply
            1
            • E ELEMENTICY

              @JonB its for python tho,My Application is using C++ language.

              JonBJ Online
              JonBJ Online
              JonB
              wrote on last edited by
              #6

              @ELEMENTICY said in How to make IntelliSense Code Completion to QPlainText:

              @JonB its for python tho,My Application is using C++ language.

              Python users have to read and adapt C++ examples for Qt. No reason why C++ users can't do the same from a Python example, it is really very easy....

              E 1 Reply Last reply
              0
              • jsulmJ jsulm

                @ELEMENTICY said in How to make IntelliSense Code Completion to QPlainText:

                its for python tho,My Application is using C++ language.

                It's same for C++, just different syntax...

                E Offline
                E Offline
                ELEMENTICY
                wrote on last edited by
                #7

                @jsulm but i dont understand them
                Could you please write an example code?
                Thanks alot

                1 Reply Last reply
                0
                • JonBJ JonB

                  @ELEMENTICY said in How to make IntelliSense Code Completion to QPlainText:

                  @JonB its for python tho,My Application is using C++ language.

                  Python users have to read and adapt C++ examples for Qt. No reason why C++ users can't do the same from a Python example, it is really very easy....

                  E Offline
                  E Offline
                  ELEMENTICY
                  wrote on last edited by
                  #8

                  @JonB can you please write an example code?Because i dont understand python.Sorry,im dumb ;P
                  Thanks alot

                  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