Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Keithel> Seems like it would break separation of UI and business logic
    [telegram] <Bauibaubau> True, but the position and size is all the logic
    It's just a viewer more or less, which displays data from network (re @Keithel: Seems like it would break separation of UI and business logic)
    [telegram] <Bauibaubau> Looks very promising, thanks a lot
    I will try it :-) (re @gooro0: Create a model, use it in a Repeater in QML, position your rectangles whatever you like)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <thecompiler> In the case of Ubuntu, "latest" seems to mean "latest LTS", from April 2020, where Qt 6 didn't even exist... At least that will change in April. But for PySide you can just install it via pip anyways. (re @pysidebot: (gitter) onessa:matrix.org: qt6 is missing in Ubuntu latest and in ci/CD stuff you don't time to sit through installer prompt dealing with bloat)
    PySide Bot
    @pysidebot_gitlab
    [irc] <schica> hi, is it normal to get QQuickFlickable as parent in a RowLayout inside ScrollView? I'm trying to anchor.fill RowLayout to parent(ScrollView), but if I inspect the parent of the RowLayout, I get QQuickFlickable...
    PySide Bot
    @pysidebot_gitlab
    [telegram] <insertaliashere> if you would have to "emulate" a terminal log, is it ok to append new lines? Or would be better to create a new Text and append it in a Layout?
    PySide Bot
    @pysidebot_gitlab
    [telegram] <gooro0> ScrollView contains Flickable within. It's normal (re @pysidebot: (irc) schica: hi, is it normal to get QQuickFlickable as parent in a RowLayout inside ScrollView? I'm trying to anchor.fill RowLayout to parent(ScrollView), but if I inspect the parent of the RowLayout, I get QQuickFlickable...)
    [telegram] <gooro0> Depends on what you're trying to achieve. Both would work, but performance-wise can be really different depending on your context (re @insertaliashere: if you would have to "emulate" a terminal log, is it ok to append new lines? Or would be better to create a new Text and append it in a Layout?)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <insertaliashere> I've a process running in background, I need to show that lines to the user, but there'll be only a few lines... I think using the same object and appending is the straighforward approach (re @gooro0: Depends on what you're trying to achieve. Both would work, but performance-wise can be really different depending on your context)
    [telegram] <gooro0> Unless it's about thousands of lines, it should be fine
    PySide Bot
    @pysidebot_gitlab
    [telegram] <tyranich> Friends, hello. I am new to pyqt5 and have run into a problem. My program should display 2 rotations with a delay of a few seconds. Also, for a certain event, output the 3rd and close the previous ones. Images in gif format. Used stackedlayout and qtimer. I'm having trouble with images hanging after some time of work. What am I doing wrong? please advise good practices.
    PySide Bot
    @pysidebot_gitlab
    [irc] <The-Compiler> note this channel is for PySide, not PyQt (though in this case an answer might be valid for both)
    [telegram] <Keithel> ListView with delegate does handle the delegates intelligently. Could do it that way with the delegate being a representation of a single line.
    If you scroll beyond a particular line by a particular amount, that line's delegate (the UI elements) will get recycled and used for a future upcoming line (filled with the line contents of the future line) that will show when the view keeps scrolling. So, there's only a handful of replications of the UI delegate in memory - enough to cover what shows on the screen plus some buffer on either end. (re @insertaliashere: I've a process running in background, I need to show that lines to the user, but there'll be only a few lines... I think using the same object and appending is the straighforward approach)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Keithel> But for text in particular, one of the text QML elements might be as good or better of a choice. I'd have to look through what's available to figure that out.
    There might be a QML (maybe c++ only) example of a text editor or viewer. That would be a good place to start looking.
    [telegram] <insertaliashere> I'll look into that, thank you very much for the thorough explanation
    [telegram] <Keithel> If you find a c++ based example, let us know (best, report a bug report at https://bugreports.qt.io) and we can translate it to Python, or, you could do the same, and we can walk you through the code submission process. (re @Keithel: But for text in particular, one of the text QML elements might be as good or better of a choice. I'd have to look through what's available to figure that out.
    There might be a QML (maybe c++ only) example of a text editor or viewer. That would be a good place to start looking.)
    [telegram] <Keithel> To find C++ based examples, easiest way is to install Qt via Maintenance Tool from account.qt.io and use Qt Creator. You can peruse the examples from the creator UI, or, you can use terminal. You'll find the examples under ~/Qt/<version, like 6.2.1>/<arch>/examples
    It doesn't matter if you don't understand the C++ - as you'll just be looking at the QML.
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Paulord13> Hi
    [telegram] <Paulord13> Hi, everyone.
    I have a question about PysSide2 with load svg image. It does not show with configuration .rc
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Paulord13> Hi 123
    stonebig
    @stonebig
    "PyPy compatibility is focused on making some last examples to work, some issues with PyPy are being found as well" ... can't wait to live the experience.
    PySide Bot
    @pysidebot_gitlab
    [telegram] <cmaureir> so far what's holding the full story are a few examples not working, that might be related to internal processes we are not taking a proper care. But ctismer is working hard on it! :)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Bauibaubau> Hey
    Can something like this archived by PySide?
    https://doc.qt.io/qt-5/qtquick-deployment.html
    I had now a user, who was reporting unusable app and in the end, he just was playing around with the qml files in word and destroyed them
    PySide Bot
    @pysidebot_gitlab
    [telegram] <ctismer> Hey, although we are still unlucky with the Mandelbrot example, I worked intensively with the tests. Actually only 9 of 134 tests have problems. I will put up an official PyPy page this week. (re @thecompiler: At least then I'll finally start to use (or write) a wrapper for Qt5/6 support, so I might as well start using PySide then, after dunno how many years (the PyPy support is a great argument to try it again))
    PySide Bot
    @pysidebot_gitlab
    [telegram] <ctismer> @cmaureir A great finding about QPainter in PyPy: This object has been wrong for a long time, the same way as files have been wrong and context managers were used to open files. This is exactly the same problem with QPainter.
    PySide Bot
    @pysidebot_gitlab
    [telegram] <ctismer> But nobody recognized this flaw, since this is the first time that a Python interpreter different from CPthon is used. PyPy uses a garbage collector, and with that, implicit QPainter.end() calling does not work. (re @ctismer: @cmaureir A great finding about QPainter in PyPy: This object has been wrong for a long time, the same way as files have been wrong and context managers were used to open files. This is exactly the same problem with QPainter.)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <cmaureir> gladly that you found it :P
    [telegram] <cmaureir> for reference to the readers: https://codereview.qt-project.org/c/pyside/pyside-setup/+/391502
    PySide Bot
    @pysidebot_gitlab
    [irc] <newqt> Hello everybody
    [irc] <newqt> Im a new user to Qt. Does anybody know when PySide6 will support Android, WebAssembly, iOS?
    [telegram] <Mohsen> Hello
    [telegram] <Mohsen> Im new user to Qt. Does anybody know when PySide6 will support android and ios? Maybe webassembly too?
    PySide Bot
    @pysidebot_gitlab
    [telegram] <RafaelTosta> Alguém já trabalhou com QWebEngineNotification?
    Não estou conseguindo achar como fazê-lo aparecer como notificação do sistema.
    É um WebApp que dispara notificações, porém não mostra nativamente. Logo consigo coletá-la através do QWebEngineProfile::setNotificationPresenter.
    Como enviar para o sistema?
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Keithel> iOS, likely never, unless Apple changes their stance on interpreted languages.
    Android more likely. (re @Mohsen: Im new user to Qt. Does anybody know when PySide6 will support android and ios? Maybe webassembly too?)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Mohsen> When we can use android ? (re @Keithel: iOS, likely never, unless Apple changes their stance on interpreted languages.
    Android more likely.)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <CrisConRu> To use Python in smartphone OS (Android / iOS) you need something that allow executing scripting languages. Android has the project SL4A (Scripting Layer For Android) for Python. But I don't know if it's a pet project mantained by someone o there's a company behind this.
    Libs like Kivy use projects like that in background (pyjinius, buildozer, etc) to make possible to have Python on mobile.
    I don't know if The Qt Company has this in mind, but it's not a trivial issue. Because all mobile-crossplatforms have a lot of issues with the fragmentation of smartphone OS' (re @Mohsen: Im new user to Qt. Does anybody know when PySide6 will support android and ios? Maybe webassembly too?)
    PySide Bot
    @pysidebot_gitlab
    [irc] <The-Compiler> There is also https://beeware.org/ - but given that there is no official Python support for Android, I wouldn't hold my breath
    [irc] <The-Compiler> as for WebAssembly, given that Qt runs there, and as of recently, Python does: https://twitter.com/ethanhs/status/1464308141105967104 - I guess someone could make it work, but I'm not aware of any recent work in that area
    PySide Bot
    @pysidebot_gitlab
    [telegram] <benvarriano> https://t.me/aiwithpy
    PySide Bot
    @pysidebot_gitlab
    [telegram] <cmaureir> it's not fully working but it was certainly good news
    [telegram] <cmaureir> the problem I see for that and pyside, is that last time I checked Qt was working with webassembly only for 5.15, haven't check if people made it work for 6.x
    [telegram] <cmaureir> but it will be amazing to give it a try to have pyside inside the browser :)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <CrisConRu> Pyodide is one project for that
    https://github.com/pyodide/pyodide (re @cmaureir: but it will be amazing to give it a try to have pyside inside the browser :))
    [telegram] <cmaureir> i checked pyodide, long time ago, but back then it was focus on non-ui applications, and mainly the whole documentation was based on making small modules to work
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Mohsen> Thanks everybody. Since Im new to python I might ask silly questions. I have tried to search google with no luck. If you say we need to compile apk with unofficial tools then whats the propose of pyqtdeploy?
    [telegram] <Mohsen> Doesnt pyqtdeploy compile for windows; linux; max; android?
    [telegram] <CrisConRu> pyqtdeploy I think is a thing of River Bank, the company behind PyQt. This channel is of PySide, the official Qt Python flavour (re @Mohsen: Thanks everybody. Since Im new to python I might ask silly questions. I have tried to search google with no luck. If you say we need to compile apk with unofficial tools then whats the propose of pyqtdeploy?)
    [telegram] <Mohsen> Oh thanks I got it now
    PySide Bot
    @pysidebot_gitlab
    [telegram] <insertaliashere> hi, can anybody give some tips in the following example? I have a main window, there you can choose between two words to generate an object that you can "play" with in a new window (you can play with objects at once, i.e multiple windows), after all windows are closed, you can generate a json with all object features. When I was working with tkinter, I had every object in memory and keep track of them using a hidden ID in the window, but I think there's an easier approach, how would you tackle this problem? I was thinking in passing the QtObject to every window and send a signal with this QtObject back to the main window and add to a list used later to generate the json.
    [telegram] <insertaliashere> But I think this is like the old approach used, instead of using a hidden ID, I'm using the whole object..., maybe should I spam a QThread dealing with every window and sending a signal to the main thread when I've finished the work with an object? I'm not sure how this is implemented in real world UIs