Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    lord_fomo
    @goodboy:matrix.org
    [m]
    and am not too too worried about consistency across many widgets
    well at least not yet
    lord_fomo
    @goodboy:matrix.org
    [m]
    ok size hinting a QTreeView i'm so lost 😂
    lord_fomo
    @goodboy:matrix.org
    [m]
    there seems to be no rhyme or reason to how big the view is when i show it
    lord_fomo
    @goodboy:matrix.org
    [m]
    arrggg
    i don't understand
    Sivan Grünberg
    @sivang

    Hi all. I'm using PySide6 == '6.0.2' and getting an import error trying to import QtWebKit:

    In [5]: from PySide6 import QtWebKit
    ---------------------------------------------------------------------------
    ImportError                               Traceback (most recent call last)
    <ipython-input-5-297f908da156> in <module>
    ----> 1 from PySide6 import QtWebKit
    
    ImportError: cannot import name 'QtWebKit' from 'PySide6' (/Users/sivan/VirtualEnvs/venv3/lib/python3.9/site-packages/PySide6/__init__.py)

    It's missing from the module dir:

    (venv3) sivan@darwin:~/VirtualEnvs/venv3/lib/python3.9/site-packages/PySide6$ ls -la | grep -i qtwebkit
    (venv3) sivan@darwin:~/VirtualEnvs/venv3/lib/python3.9/site-packages/PySide6$ 
    `

    PySide6 installed via pip into a virtual env, anything out of the default need be done to get QtWebKit there as well ?

    Cristián Maureira-Fredes
    @cmaureir
    @sivang you were reaaally away from the proejct it seems :)
    webkit was deprecated loooooong time ago
    it was not even a part of the initial "official release" for 5.12
    Sivan Grünberg
    @sivang
    I was! @cmaureir
    Cristián Maureira-Fredes
    @cmaureir
    people were encourage back in the day to use QtWebEngine, which will hopefully be available in 6.2
    Quoting:
    "Qt WebEngine supersedes the Qt WebKit module, which is based on the WebKit project, but has not been actively synchronized with the upstream WebKit code since Qt 5.2 and has been deprecated in Qt 5.5. For tips on how to change a Qt WebKit widgets application to use Qt WebEngine widgets, see Porting from Qt WebKit to Qt WebEngine."
    Sivan Grünberg
    @sivang
    @cmaureir I was kind'a counting on it for some sort of a research project - a hybrid app combing several QtWebKit's view
    *views
    sivang @sivang reads and groks
    Sivan Grünberg
    @sivang
    What would be then a potential solution to use to display web pages at the moment? (i.e. until 6.2 )
    swathichandregowda
    @swathichandregowda:matrix.org
    [m]
    Hello, everyone I developed one exe using pyside2. I want to add radial progressbar/circular progressbar in the mainwindow.Main window already contains some controls in it.So is there any way to draw radial progressbar using pyside2?,it helps me a lot.Thank in advance
    From IRC (bridge bot)
    @FromIRC
    <The-Compiler> @sivang, Qt 5.12 or 5.15 and QtWebEngine
    Sivan Grünberg
    @sivang
    ok thanks <The-Compiler>
    luzpaz
    @luzpaz
    is there a way to put animated gifs within a tooltip ?
    Sivan Grünberg
    @sivang
    hey all, how are things going for you this morning/evening/noon and what interesting PySide projects are you working on? (this includes obviously the PySide work itself ;) Good morning from Tel Aviv
    Luc Touraille
    @stilllman

    Hey there! I'm working with a qt and qt for python built from source (5.15.3) and I hit the following assert in Debug on Windows when importing any PySide2 module:

    Assertion failed: _PyGCHead_REFS(gc) != 0, file c:\a\18\s\modules\gcmodule.c, line 277

    Any idea what could be going wrong?

    From IRC (bridge bot)
    @FromIRC
    <delvian> Hi All. Does anybody know of a good QtQuick/QML tutorial?
    <delvian> The official docs seem a bit unorganized to me and has a few broken links. And some of the examples don't work.
    Sivan Grünberg
    @sivang
    <delvian> this is a tutorial I really liked by a cool guy from ICS: https://www.youtube.com/watch?v=Zna1KHQj_8Y
    delvian: ^
    From IRC (bridge bot)
    @FromIRC
    <delvian> @sivang: Thanks :⁠)
    Sivan Grünberg
    @sivang
    delvian: you're most welcome, this has a nifty little booklet with the slides and some extra commentary they gave us there, but I don't know if there's a PDF version of that somewhere but the lecture is good (note there's also part 2 so somewhat comprehensive)
    luzpaz
    @luzpaz

    is there a way to put animated gifs within a tooltip ?

    (repost)

    Cristián Maureira-Fredes
    @cmaureir
    hckjck0
    @hckjck0:matrix.org
    [m]
    I want to implement a list of elements which are able to hold widgets. Would QAbstractItemView be the way to go?
    Yesserdz
    @Yesserdz
    Hi Developers i want a clear example with an explanation of how to link QSqlTableModel and python and qml and fill in qtableview in qml
    Till Stensitzki
    @Tillsten
    Make one?
    luzpaz
    @luzpaz
    @cmaureir :+1:
    From IRC (bridge bot)
    @FromIRC
    <The-Compiler> sahumada: I don't think so, those examples were taken from Qt 5
    Cristián Maureira-Fredes
    @cmaureir
    exactly, webengine should be available for 6.2. if you have a dev qt built with support for qtwebengine it should work, but afaik it's WIP
    From IRC (bridge bot)
    @FromIRC
    <shimbles> do you guys have any instructions for building qt + pyside from scratch
    <shimbles> i am on ubuntu
    <shimbles> also where can I find XCB_XPRINT XCB_XEVIE
    Matthias Kuhn
    @m-kuhn

    Hi, we are trying to port QGIS (a rather large Qt base application) to PySide2

    We are running into an issue with "allocating an object of abstract type ..."

    qt-for-python/qgis/core/qgsmaplayer_wrapper.cpp:1289:35: error: allocating an object of abstract class type '::QgsMapLayerWrapper'
                    cptr = new (addr) ::QgsMapLayerWrapper();
                                      ^
    ../src/core/qgsmaplayer.h:942:18: note: unimplemented pure virtual method 'readSymbology' in 'QgsMapLayerWrapper'
        virtual bool readSymbology( const QDomNode &node, QString &errorMessage,
                     ^

    Most messages of this type could be eliminated by adding classes required for the function signature to the type system. In this case here, this doesn't seem to help.

    Here's the method signature
    https://github.com/opengisch/QGIS/blob/qt-for-python-qt5/src/core/qgsmaplayer.h#L942-L943

    And here the corresponding type system xml
    https://github.com/opengisch/QGIS/blob/qt-for-python-qt5/qt-for-python/qgis/typesystem_qgis_core.xml#L102-L105

    Interestingly there's also another method bool render(); which shows the same, so I'm tempted to believe it's related to the boolean return type. Does this sound plausible, are there other suspicions ... And ideally, how can we solve that.

    Thanks in advance for any hint

    Gentle ping @cmaureir

    Matthias Kuhn
    @m-kuhn
    The problem disappeared after changing some other things, not sure what it was but we can go further now.
    From IRC (bridge bot)
    @FromIRC
    <SirGambleot> Hello, quick question, Has QWebSocket been ported to Pyside6 yet?
    Matthias Kuhn
    @m-kuhn

    We are facing another Problem now

    Situation, two classes A and B with inheritance and the subclass overrides with a more specific return value

    class A
    {
      virtual A *clone() const;
    }
    
    class B : public A
    {
      B *clone() const override;
    }

    The compiler fails with

    b_wrapper.h:47:19: error: invalid covariant return type for ‘virtual A* B::clone() const

    Apparently it creates the subclass override with the parent signature, is that expected?

    Christian Tismer-Sperling
    @ctismer
    Matthias Kuhn
    @m-kuhn
    @ctismer thanks for pointing this out. We have updated this file, I should have linked to a specific commit, not a branch
    I'm still struggling to find a solution for the invalid covariant return type