How to make IntelliSense Code Completion to QPlainText
-
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 = ) -
My UI Name ui->
codingarea
-
@ELEMENTICY
If you want aQCompleter
attached to aQPlainTextEdit
(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 theQPlainText
inside aQWidget
so that you have aQCompleter
? -
@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...
-
@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....