Unsolved A PDF viewer within PySide2?
-
Thanks. I am definitely not going to be altering the original source code.
@Denni-0 , Sorry if I seemed mad. Things has been crazy frustrating since the lock down, all work has fallen onto me and as if quality of life wasn't already bad in India, it's been even worse since the lock down.
The only complex widget that I am going to be using is the QtWebEngine which I am not sure if comes under LGPL. Can someone please enlighten me whether this component is under which license?
-
@lolcocks
For QtWebEngine see https://doc.qt.io/qt-5/qtwebengine-licensing.html. It's still LGPL, as opposed to GPL. the summary is:The arguably most restrictive license to be respected by all users is LGPLv2.1.
I agree you might have to make your own judgment about Chromium, but again it is not a PySide2 issue.
-
@lolcocks 1) You have only answered point 1 of my previous comment. Any answer from the second point? 2) Always take the time to post the best possible comment to avoid unnecessary discussions, it is not necessary to respond quickly, but what you answer is complete. 3) On the other hand I recommend checking this thread to see if it is possible to compile pyside2 for RPI: https://bugreports.qt.io/browse/PYSIDE-802
-
@Denni-0 said in A PDF viewer within PySide2?:
@lolcocks no problems -- I do not make the rules -- I just try to shine the light on some of the more obscure ones
and yeah LGPL versus GPL are problematic to a degree -- although the simple answer is based on how do you answer this question?
Are you planning on making a end product that you plan to sell?
Answer: Yes
Solution: By a commercial licenseAnswer: No
Solution: Use GPL because if you do not sell it there really is nothing to enforceI get your point but for a third world country like mine with a really small company, $550 is quite high. Plus since the lockdown, the company is basically running on fumes. I don't think I am getting paid the next one or two months, but gonna stick with them cause the future seems promising for us.
I think I should be fine as Python's source code is open anyways and maybe I will tell the boss to allow me to put a copy of the source code on the website. Hopefully another large company won't rip it off.
@eyllanesc said in A PDF viewer within PySide2?:
@lolcocks 1) I recommend creating a new thread as your problem has nothing to do with the initial problem. 2) Have you installed Qt5? If you have installed it then how have you done it? Where have you installed it?
Apologies for not replying to the second part.
No. And yes, the error popped up cause I had not installed Qt5, I missed a step in the guide.Which I did later, but the problem was that the QtWebEngine cannot be compiled on the Raspberry Pi when compiling PySide2. It needs to be skipped, I think because of the 4GB RAM limit.
While researching yesterday, I read a comment on some website that his build of QtWebEngine was successful on a machine with 16 GB RAM but failed on a 12 GB RAM computer. Maybe I will try to build when I get a new computer with 16 GB RAM and then cross compile it.
Till then, getting back on the topic, I can convert the PDF to a image using pdf2image.
If I load the image into a label, can I make it scroll-able? Or using some other widget?
-
@lolcocks For small companies with <250k revenue you only have to pay 499$ per year.
See https://www.qt.io/buy-product/ (check "Our annual revenue/funding is <$250K" check box).Sorry, just noticed that you want to use PySide.
-
@jsulm said in A PDF viewer within PySide2?:
@lolcocks For small companies with <250k revenue you only have to pay 499$ per year.
See https://www.qt.io/buy-product/ (check "Our annual revenue/funding is <$250K" check box).Sorry, just noticed that you want to use PySide.
Our revenue is like 10000 to 20000 USD per year, most of which goes into salaries with very little left for development costs.
-
@lolcocks
You do not need to buy a commercial licence. Provided you are willing to abide by the LGPL of Qt5 & Pyside2, or the GPL of PyQt5 --- and I don't see that you have objected to these so far? --- so I don't know why you are worrying about commercial if you can't afford/don't want to buy it. -
@Denni-0 said in A PDF viewer within PySide2?:
Again you only need that commercial license if what you are building is going to be sold -- and if you are going to sell it posting the source code kind of defeats the purpose cause I can just go get your source code for free and use that.
So I am guessing you are not selling this software but using it -- if you are just using it -- as I stated the licenses are next to meaningless as there is nothing really to enforce -- it is primarily there to keep others from directly benefiting financially off of someone else's intellectual property by plagiarizing it.
So if you are just creating an application that the company plans to use internally or to use alongside something they do sell but is not an integral part of it then you should have no issues. So far it seems unclear to me what you are going to be doing with your end product that you are trying to make.
The application is going to be on a Raspberry Pi. The Raspberry Pi is going to have multiple temperature, flow and pressure sensors connected to it.
The Python code is going to sense the data from these sensors and display it to the user using the Qt framework.
The Raspberry Pi along with all the sensors is going to be sold as a whole product.
Is this the correct link for buying a commercial license?
https://www.riverbankcomputing.com/commercial/buy -
@lolcocks
Yes, that is the link to go buy commercial PyQt5 from Riverbank. To be clear, this is a commercial licence for PyQt only, not for Qt.Since you have decided to go commercial/closed source, you may also need to buy a commercial licence for Qt5 from Qt Company. https://www.qt.io/buy-product/. Go look at costs there, figure what you want, and total that with your PyQt licence if required before you start out.
Purely because I am interested, how are you intending to distribute your Python/PyQt application to conceal your Python source code?
-
@JonB said in A PDF viewer within PySide2?:
@lolcocks
Yes, that is the link to go buy commercial PyQt5 from Riverbank. To be clear, this is a commercial licence for PyQt only, not for Qt.Since you have decided to go commercial/closed source, you may also need to buy a commercial licence for Qt5 from Qt Company. https://www.qt.io/buy-product/. Go look at costs there, figure what you want, and total that with your PyQt licence if required before you start out.
Purely because I am interested, how are you intending to distribute your Python/PyQt application to conceal your Python source code?
Thanks, I will look into everything.
I was planning to use PyInstaller and / or PyArmor to conceal the Python code. But if the company cannot afford a Qt commercial license, I would have left it open.And regarding the actual topic for this thread, I am trying to cross compile Qt for the Raspberry Pi to get QtWebEngine working on the Raspberry Pi.
https://forum.qt.io/topic/114432/cross-compiling-qtwebengine-for-raspberry-pi