#pyqt | Logs for 2019-02-14
Back
[03:32:11] -!- n1` has joined #pyqt
[03:36:37] -!- malberts has joined #pyqt
[03:43:42] -!- BPL has joined #pyqt
[04:30:35] -!- n1` has quit [Ping timeout: 258 seconds]
[04:43:53] -!- n1` has joined #pyqt
[05:05:28] -!- malberts has quit [Ping timeout: 246 seconds]
[05:23:57] -!- malberts has joined #pyqt
[05:44:05] <BPL> anyone that ever used sip to port c++ to python willing to help? ty in advance
[05:47:30] <n1`> why should/n't go for PySide2? Any experiences?
[05:52:22] <The-Compiler> n1`: only reason to go for PySide2 at the moment (IMHO) is when PyQt's GPL license is a problem for you
[05:52:53] <The-Compiler> n1`: this might change in a few months/years, but so far, PyQt5 is by far the more mature and stable of the two, PySide2 still seems rather buggy and incomplete in places
[05:53:07] <n1`> The-Compiler: aha... so there is no added value whatsoever?
[05:53:36] <BPL> license... and also if you're attached to some of the other riverbank products (ie: pyqtchart, qscintilla, ...) . Other than that, i don't see any strong reason to stick with pyqt any longer :/
[05:53:47] <n1`> The-Compiler: i wonder why they dont just contribute to pyqt instead of creating own lib
[05:54:28] <n1`> BPL: so you use pyside2?
[05:54:53] <BPL> n1`: Once I'm able to port some c++ editor to python and i can get rid of this annoying qscintilla dependency i'll definitely throw pyqt to the bin
[05:55:09] <BPL> until then I'm attached to this pyqt thing for the good and the bad :(
[05:55:48] <The-Compiler> BPL: I've tried adding support for PySide2 to qutebrowser, and it was so buggy and incomplete that I gave up
[05:56:12] <BPL> license is pretty damm expensive and support in the forum list hasn't been great, so... but yeah, pyqt is quite stable on the other hand
[05:56:18] <The-Compiler> BPL: using Python enums in a signal? Boom, segfault. Using QtWebEngine and need access to the history or settings? Out of luck, those are missing.
[05:56:20] <BPL> that's why i say "for the good and the bad"
[05:56:43] <BPL> The-Compiler: But you can report issues easily, right? pyside channels with good support, pretty big team...
[05:56:47] <BPL> come on :P
[05:56:54] <The-Compiler> BPL: sure, those issues have been reported for ages
[05:57:19] <BPL> well, it's what you get when using a "free" product, 2 choices, either just complaining about bugs or just getting the job done
[05:57:40] <The-Compiler> https://bugreports.qt.io - five years old soon ¯\_(ツ)_/¯
[05:57:59] <BPL> i think if everyone would contribute a little bit to pyside we'd get the stability we hope for very soon
[05:58:12] <BPL> once i've get rid of scintilla i'll start porting stuff to pyside2 for sure
[05:58:22] <BPL> 450euros for a software license, crazy :P
[05:58:29] <The-Compiler> nah, that's nothing
[05:58:58] <BPL> yeah, that's nothing if you're the only alternative in the market
[05:59:12] <The-Compiler> every bigger company will likely pay software licenses somewhere in the four to five digit range, sometimes yearly
[05:59:51] <BPL> y, sure... in any case, not saying pyqt is a bad choice... but i think pyside2 is a more promising one
[06:00:25] <The-Compiler> mind you, a Qt license is $459 monthly ;)
[06:00:37] <BPL> :O
[06:01:23] <n1`> lol
[06:01:48] <The-Compiler> n1`: the thing is that contributing to PyQt is almost impossible - there's no public repository, all you can do is sending patches to a mailinglist, but it's pretty much an one-man show
[06:01:58] <BPL> y!
[06:02:12] <n1`> The-Compiler: thats what im afraid of... one man show
[06:02:15] <n1`> so...
[06:02:23] <The-Compiler> but it's over 20 years old, and PySide2 still has a lot to catch up with
[06:02:37] <n1`> in one hand $459/month and in the other one man show
[06:02:42] <n1`> so i get that right?
[06:02:59] <BPL> $459/month if you're using commercial qt license...
[06:03:03] <n1`> ah
[06:03:11] <The-Compiler> no, $459/month is for the Qt license, which you might need in addition to the (one-time) PyQt license, or you might not need at all, depends on your needs
[06:03:37] <n1`> damn....thanks... im pretty lost in licensing
[06:04:05] <BPL> n1`: more info here https://www.riverbankcomputing.com
[06:09:03] <n1`> thx
[06:09:37] <n1`> The-Compiler: btw.. you are the guy behind qutebrowser?
[06:09:41] <The-Compiler> indeed
[06:10:07] <BPL> but i understand you're lost with the licensing stuff... I do, in fact, when looking qt' https://www.qt.io even if you read carefully you end up being confused :P
[06:10:18] <n1`> may i have a specific question about pdf stuff?
[06:10:45] <BPL> at the end they say "Pricing starts at $459/mo." ... i understand that's related to the commercial license, isn't?
[06:11:07] <The-Compiler> n1`: go ahead, as long as you don't ignore me when I ask questions back :P
[06:11:31] <n1`> The-Compiler: ask back? when? where?
[06:11:48] <BPL> The-Compiler: before coding back... any experience using sip to integrate c++ code on python?
[06:12:46] <BPL> maybe familiar with the source of this error? https://bpaste.net
[06:13:16] <n1`> BPL: like what the heck is wrong with that qt download website? once i opened it up in my browser my i7 went to 100% an all 8 cores
[06:13:20] <The-Compiler> 17:25 <altendky> n1`: i don't know but have you looked at qutebrowser? can it handle pdfs?
[06:13:22] <The-Compiler> 17:37 <n1`> yup i inspected that in the morning... but it bundles all the stuff by itself
[06:13:24] <The-Compiler> 17:48 <The-Compiler> n1`: what do you mean?
[06:13:26] <n1`> BPL: probably some NSA javascript :)
[06:13:36] <The-Compiler> Qt's website is horrible :-/
[06:14:17] <The-Compiler> BPL: sounds like a missing -I for the PyQt sip files
[06:14:26] <n1`> The-Compiler: ah sorry... sometimes i just run off the keyboard and get back hours later so i probably didnt see that
[06:14:38] <BPL> The-Compiler: Indeed, QtGuimod.sip can be found in pyqt's source zip file, ie: https://github.com but not sure how to point out to that directory
[06:14:51] <The-Compiler> BPL: download the source, extract it somewhere, point -I to there?
[06:15:00] <The-Compiler> n1`: happens :)
[06:15:11] <BPL> ok, so -I is used for include directories? let me check... :D
[06:15:23] <The-Compiler> it tells sip where to look for .sip files
[06:15:29] <BPL> ok, ty, trying
[06:15:44] <BPL> sip.exe --help isn't very helpful btw :)
[06:15:47] <The-Compiler> (I never used sip for anything other than PyQt, this is just intuition :P)
[06:15:57] <BPL> (py364_32) d:\PythonEditor>sip --help
[06:15:57] <BPL> sip: Usage: sip [-h] [-V] [-a file] [-b file] [-B tag] [-c dir] [-d file] [-D] [-e] [-f] [-g] [-I dir] [-j #] [-k] [-m file] [-n name] [-o] [-p module] [-P] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-X id:file] [-y file] [-z file] [@file] [file]
[06:16:56] <BPL> before considering sip i though about shiboken2, swig or any other alternatives... but i think sip is the faster choice :/
[06:17:13] <n1`> The-Compiler: well about my question and about the unanswered one.... prety much the same. I have simple app where i run QWebEngineView and I try to load PDF. No luck. I use the QWebEngineSettings.PluginsEnabled flag and then I get blank page with a message "Plugin couldnt be loaded".
[06:18:22] <n1`> The-Compiler: from what I read it's not wuite easy to render PDF in Qt nowadatys since that PDFium is still in progress and other methods seemed to be quite complicated. So my question is how qutebrowser solves that :)
[06:18:34] <n1`> if it does which i believe
[06:22:53] <The-Compiler> BPL: what other alternatives are there? I've played with ctypes/cffi/cython, but IIRC they are all C, not C++
[06:23:11] <The-Compiler> n1`: it uses PDF.js
[06:23:33] <The-Compiler> n1`: (bundled for the macOS/Windows releases, or it tries to find a system-wide install for Linux)
[06:24:36] <The-Compiler> n1`: but yeah, I'm really looking forward to PDFium, hopefully in 5.13, I wasn't quite sure
[06:25:22] <BPL> The-Compiler: Usually I use swig swig for almost all my c++ wrapped code, which is quite a lot... but when it comes to Qt I think the main obvious choices are either shiboken2 or sip. Other alternatives like pybind11, boost, clif, ... well, guess it'd take quite a lot of effort to wrap qt stuff... or if you know what you're doing maybe not :/ . That said, i've been able to use sip to create the pyd+dll for this mcve and python is
[06:25:22] <BPL> complaining jezz
[06:25:35] <BPL> the well-known error "ImportError: DLL load failed: The specified procedure could not be found." :(
[06:25:54] <BPL> i've face this error zillion times and... can you believe i still don't know the reason of it? lol
[06:26:32] <The-Compiler> BPL: do you know "Dependency Walker"?
[06:26:59] <The-Compiler> http://dependencywalker.com
[06:27:01] <BPL> The-Compiler: Yeah, know that one... although i tend to use my custom pydepends (written by me) :)
[06:27:07] <BPL> let's see
[06:27:09] <The-Compiler> BPL: do you have a link for that?
[06:27:32] <BPL> The-Compiler: trivial hello world i'm playing with btw, https://github.com
[06:27:58] <BPL> The-Compiler: if you want to try just... # python configure.py && make or... #python configure.py && nmake (if on windows)
[06:30:37] <BPL> The-Compiler: here's the deps https://bpaste.net , as you can see pythoneditor.dll is located in the same place than the pyd , so... :/
[06:31:46] <n1`> The-Compiler: haha we think the same...pdf.js is the way I will go. Also looking forward to 5.13. Thanks for the answer.
[07:12:12] -!- BPL has quit [Quit: Leaving]
[07:20:55] -!- malberts has quit [Ping timeout: 246 seconds]
[07:39:50] -!- malberts has joined #pyqt
[08:35:06] -!- Siecje has joined #pyqt
[09:12:27] -!- malberts has quit [Quit: Leaving.]
[09:40:43] <altendky> The-Compiler: an update https://github.com
[09:41:36] <The-Compiler> altendky: oh, nice, thanks!
[11:23:00] -!- AbleBacon has joined #pyqt
[11:37:47] <The-Compiler> n1`: btw, most of the logic is here: https://github.com - for the rest, grep for "pdfjs." in the sources
[12:12:35] <n1`> The-Compiler: thx i will have a look
[12:52:09] -!- daegontaven has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
[12:52:46] -!- shreyansh_k has joined #pyqt
[12:57:07] -!- daegontaven has joined #pyqt
[15:35:13] <n1`> The-Compiler: may I have a suggestion?
[15:36:01] <n1`> ah...never mind, my bad
[15:40:01] <The-Compiler> then no :P
[15:41:20] * n1` is still wondering
[15:41:30] <n1`> qt is in 5th version
[15:41:39] <n1`> still no pdf support
[15:42:12] <n1`> like.... really? pdf? almost the most used filetype around the globe for docs
[15:42:25] <n1`> now i hate everyone who leads qt :)
[16:33:30] _plasma is now known as daloko
[16:35:20] -!- Siecje has parted #pyqt
[17:00:51] -!- mintograde has joined #pyqt
[17:41:31] -!- kdas_ has joined #pyqt
[17:42:07] -!- kushal has quit [Ping timeout: 256 seconds]
[18:00:24] -!- AbleBacon has quit [Quit: Leaving]
[20:29:18] -!- Grange has joined #pyqt
[20:32:38] <Grange> Hi all. I'm trying to implement dragging a QTableView row into a QTreeWidgetitem. For the QTableView I've a custom QAbstractTableModel and QHeaderView. Where do I do the QDrag and MimeData thing? Thanks!
[20:50:45] <Grange> inside the model?
[21:48:09] -!- Grange has quit [Ping timeout: 244 seconds]
[22:11:16] -!- mintograde has quit [Ping timeout: 259 seconds]
[23:32:31] kdas_ is now known as kushal