fhackenberger / ktikz

KtikZ provides a nice user interface for making pictures using TikZ.
Other
348 stars 34 forks source link

Qt6 qpdf #58

Open alecn2002 opened 2 years ago

alecn2002 commented 2 years ago

Hi, I've ported QTikz to under QT 6.3 with QtPdf, removing dependency on Poppler. It still have some issues, but it works, compiles and shows resulting puicture. Unfortunately I was able to compile it under Linux only, AFAIK Windows version of QtPdf is not ready yet.

Alexander

jfmcarreira commented 2 years ago

Does it maintains compatibility with Qt5 in this branch? Otherwise I would suggest us to create a Qt6 branch

alecn2002 commented 2 years ago

I've tried to do "#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)" everywhere where I've done changes and keep QT5 code under "#else" branch, but I didn't try to compile under QT5. And taking into account that it is compilable under Linux only, yes, I think it's a good idea to have separate branch for it.

jfmcarreira commented 2 years ago

I pushed your branch into this repository with the name qt6.

Is that ok with you? I still need time to check it at least in Linux. On mac i was not able to get the dependencies

alecn2002 commented 2 years ago

Thank you Joao. Yes it's OK for me. I'm going to continue my development with QPDF usage: in this change I've used conversion to graphics, while QPDF has it's own QPdfViewer widged what eliminates need to generate PNG or other graphic representation - its needed only for exporting to graphic format. Re: Mac: when you've installed QT 6.3 on Mac, are you sure that you've installed QPdf? It's treated as "experimental" and should be installed separately. Also I'm not sure if it's available on Mac at all. On Windows it's not available: while there is such an option in QT Installer, only documentation is installed but no libraries, so building under Windows is now impossible. I can't check how things are going on Mac, I don't have access to one.

alecn2002 commented 1 year ago

yes, what I did is QT only, no KDE involved

On Fri, 6 May 2022 at 23:42, Joao Carreira @.***> wrote:

Is this a Qt only version?

— Reply to this email directly, view it on GitHub https://github.com/fhackenberger/ktikz/pull/58#issuecomment-1120028570, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJL5ZIGIXNAOE3MLONRZ3TVIWG6FANCNFSM5VJA24PA . You are receiving this because you authored the thread.Message ID: @.***>