-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt 6 compatibility with CI build #47
base: master
Are you sure you want to change the base?
Conversation
CI actions added cmakelist updated for actions as -ansi option causes issues
Could this please be merged ? |
This Pull request is quite usefull. I suggest to merge. I was able to run with QT6. |
How did you make it? I am struggling to compile but from QT5 to QT6 it won't work. It looks like a nice project but there ain't any way to take a step forward |
TBH I changed the project from QT5 -> QT6 by my own. I did this by changes like adding I was able to run this code:
Hopefully this will help You. |
First of all, thank you for the response and congratulations on what seems to be a very interesting widget. I managed to compile it by adapting the changes; the two CMakeLists.txt files were compiled successfully. I'm confused because the example still gives me the problem of not finding the various #include and it doesn't start. Unfortunately, I usually use qmake for my projects and I don't understand how to integrate the widget, besides the fact that the example project does not find the various includes as mentioned before. Can anybody explain me what O am doing wrong?? |
I was facing the problem with not finding includes. Remember to use CMakeLists.txt which is outside (this https://github.com/Megaxela/QCodeEditor/blob/master/CMakeLists.txt instead of this: https://github.com/Megaxela/QCodeEditor/blob/master/example/CMakeLists.txt). Also make sure that You have all required additional libraries in QT (use QMaintanance tool). I forgot to tell You that I'm using Linux (Ubuntu based PopOS). |
Well it has been a bit tricky to puzzle things together but I finnaly made it on Windows starting from fork: https://github.com/l3enQ/QCodeEditor I loaded the loaded the QCodeEditor (not the example) From QT Creator I did
This generated a file mypath/build-QCodeEditor-master-Desktop_Qt_6_4_2_MinGW_64_bit-MinSizeRel/qtc_MinGW_Makefiles/libQCodeEditor.a I setup a new blank application with qMake and just a simple form. I added it to my qMake .pro by adding a folder to my project called: QCodeEditor and the edited to .pro file like this:
In my MainWindow.cpp file I had to include the headers in this way:
And also needed to change a bunch of other .hhp files all in the same way by adding include/internal/xxxx.hpp Finally in my MainWindow i added:
I am now playing around with all the features.... here is a picture of my final result: |
Since there have been no new commits in this project for 5 years, I decided to breathe some life into it. It's forked in my repositories, I rebranded the name to K-Editor to avoid confusion, updated it to Qt to 6.6.3, cleaned up the CMakeLists (separated the library from the example), and added pull requests that appeared in the original QCodeEditor repository. If anyone is interested, feel free to collaborate |
Here is link: @rafal-tarnow Great job Rafal! |
No description provided.