Code Monkey home page Code Monkey logo

novile's People

Contributors

antvconst avatar tucnak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

novile's Issues

Update to QT 5.11+ ?

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

How to use the example?

Hi tucnak.
You could help me run the example? I can not find the .pro file. Thanks in advance.

Problem setting text on Windows

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.

Include screenshot in the README?

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).

Great idea

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.