tucnak / novile Goto Github PK
View Code? Open in Web Editor NEWThe Novile source code editor component for Qt
License: GNU Lesser General Public License v3.0
The Novile source code editor component for Qt
License: GNU Lesser General Public License v3.0
Hey
Was just looking for a library like this, but it seems to have some hiccups with web engine due to it being split away from qt. Any chance to get this lib updated with latest Qt maybe?
Regards
Dariusz
Hi tucnak.
You could help me run the example? I can not find the .pro file. Thanks in advance.
When I attempt to set the text of the editor from the contents of a file on Windows like so:
void CodeEditor::loadFile(const QString &path) {
mFile = new QFile(path);
if (!mFile->open(QIODevice::ReadOnly)) {
qWarning() << "Unable to open file: " << path;
return;
}
mEditor->setText(mFile->readAll());
mEditor->setCursorPosition(0, 0);
mFile->close();
}
the value of mEditor->text() is always ""
This code does work, however, on OS X.
The following does work.
mEditor->setText("some text");
I also tried this and, again, text comes up empty.
QString contents = file.readAll();
mEditor->setText(contents);
And since I'm sure you will ask, yes, I have dumped the contents of the file using qDebug and the file is being read correctly.
I'm not sure if I'm doing something wrong but I find it odd (not really) that this is only happening on Windows. Any assistance would be greatly appreciated.
Would it be possible to include a screenshot of the text editor somewhere? Being that I'm still waiting on Qt to call me back before they'll even send me a download link, I'm just really curious as to how this project compares to QScintilla2 (I'm really hopeful that it blows it away).
Could you commit a screenshot to the repo? And possibly add a link to the readme (or better yet, rename the readme to README.md and use github-markdown to display it in the github view).
I am thinking alot about this too.
But I am wanting to port your code to golang and Qt. Mostly because I find it easier. Yes am lazy to learn c++.
But it's pretty easy in golang and Qt.
If your interested in the idea let me know as I can see we have same sort of interest in this area
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.