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] <kastakin> Arch or nothing ;) (re @thecompiler: )
    Onessa
    @onessa:matrix.org
    [m]

    the correct answer was: I use Arch btw

    lol

    PySide Bot
    @pysidebot_gitlab
    [irc] <boris_> Hello everyone ! Can someone please explain the difference is a QGraphicsView vs QLabel when used for displaying QPixmap captured from open-CV?
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Elias> I also have the same doubt
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Elias> does anyone have an example of: ==def selectByFields(model, fields): == using peewee orm?
    PySide Bot
    @pysidebot_gitlab
    [telegram] <thecompiler> that seems entirely unrelated to Qt, no? (re @Elias: does anyone have an example of: ==def selectByFields(model, fields): == using peewee orm?)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Elias> pyside (re @thecompiler: that seems entirely unrelated to Qt, no?)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <benvarriano> https://t.me/aiwithpy
    [telegram] <thecompiler> Not related to Qt at all... And didn't you post this here earlier already too? (re @benvarriano: https://t.me/aiwithpy)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <cmaureir> yep, spamming like 3rd or 4th time
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Keithel> @boris
    QGraphicsView is likely overkill for what you're trying to do. It provides it's own translation and coordinate system which allows one to draw many thousands of primitives more efficiently than is done with straight Qt Widgets using builtin widgets. However, it is an older API that, while still supported, has mostly been superceded by QML. If you're just trying to display OpenCV in a window with some Qt controls, then QLabel should be fine for that.
    You can also do this with QML - and use the Image item. (re @pysidebot: (irc) boris
    : Hello everyone ! Can someone please explain the difference is a QGraphicsView vs QLabel when used for displaying QPixmap captured from open-CV?)
    [irc] <boris_> Thank you Keithel! Could you please give an example where QGraphicsView is preferable against a QWidget?
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Keithel> Doing any sort of drawing where you want to be able to keep track of the drawing elements, zoom in on them, etc.
    The main one that Qt uses it for is Qt Charts. Qt Charts is implemented using the graphics view framework. These days if it was reimplemented from scratch, it probably would be implemented using QML.
    Qt Charts draws points and lines using QGraphicsItem primitives, and provides the user a means for zooming in and out, changing the style of points, etc.. This is all done by manipulating QGraphicsItems in a QGraphicsScene. You provide a view onto the scene by putting a QGraphicsView into your Qt Widgets app.
    [irc] <boris_> Great example! Much appreciated!
    Ogi Moore
    @j9ac9k
    Oh yeah I always forget about Qt charts!
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Mohammad_Amin_Asadi_tu> Forwarded from Mohammad_Amin_Asadi_tu: Hello everyone. I'm having trouble using matplotlib inside pyqt5. When I copy the code from stack or different other sites with different solutions it works. But when I try to do it myself, NOTHING!
    Can someone please help me out with this?
    Please explain me the nature or the fundamentals of each commad. Since I've seen a bunch of code about it. But I wanna deeply understand it.
    Thanks.
    [telegram] <Mohammad_Amin_Asadi_tu> Forwarded from Mohammad_Amin_Asadi_tu: If u mean to use FigureCanvas from backend_qt5agg for the figure created by matplot, I know that. Actually I've done it as wab pages have told. But the solutions were different and I miss the essentials.
    [telegram] <Mohammad_Amin_Asadi_tu> Forwarded from Mohammad_Amin_Asadi_tu: That's why I can't get it done
    [telegram] <Mohammad_Amin_Asadi_tu> I drag and drop the graphics view widget in qt designer and resize it there. Then in the python file I want my matplotlib graph to be draw on that widget which I've fixed in designer. But nothing is showing up.
    [telegram] <Mohammad_Amin_Asadi_tu> Can someone please help me out?
    PySide Bot
    @pysidebot_gitlab
    [telegram] <cmaureir> just fyi this is a channel for pyside not pyqt. With that in mind, the pyside docs has an example of embedding a matplotlib in a qt application, check the example section in https://doc.qt.io/qtforpython (re @Mohammad_Amin_Asadi_tu: Can someone please help me out?)
    PySide Bot
    @pysidebot_gitlab
    [irc] <boris_> trying to show an image in full size, I use https://paste.debian.net/1241886/, However running this in kde, the app opens and the image (being bigger than my screen resolution) expands below my toolbar.
    [irc] <boris_> Moving the app in my second monitor, where there is no toolbar at the bottom of the screen, I can see the image shown correctly
    [irc] <boris_> can someone help me with this please?
    PySide Bot
    @pysidebot_gitlab
    [irc] <The-Compiler> boris_: one problem I'm guessing there is is that you don't account for other things needing space in the window, such as its titlebar
    [irc] <The-Compiler> boris_: I wonder if you could just maximize the window and then ask it for its geometry? Not sure if that works though.
    [irc] <boris_> I think I go with fullscreen, where I definetely know the dimensions
    [irc] <boris_> Of course layouts would deal with it but I am trying to decorate widgets with custom PNG images and these get scaled badly
    PySide Bot
    @pysidebot_gitlab
    [telegram] <thecompiler> sigh... @cmaureir @Keithel any of you have admin access to PySide@qt-project.org to boot off a complete idiot from there?
    [telegram] <thecompiler> they're actively spamming the list right now after I explained to them how to unsubscribe: https://lists.qt-project.org/pipermail/pyside/2022-May/thread.html
    PySide Bot
    @pysidebot_gitlab
    [telegram] <cmaureir> :O
    PySide Bot
    @pysidebot_gitlab
    [telegram] <cmaureir> done
    PySide Bot
    @pysidebot_gitlab
    [telegram] <tomazcanabrava> he's creating fake gmail accounts just for that.
    [telegram] <tomazcanabrava> rensb3rg at gmail.com too
    [telegram] <thecompiler> thanks! Both addresses? (rensb3rg@gmail.com and sid200403@gmail.com) (re @cmaureir: done)
    [telegram] <thecompiler> yeah, I reported them to google as well, but I'm guessing they won't care
    [telegram] <tomazcanabrava> I'd not subscribe him so he gets annoyed by receiving the emails, but block him to send.
    [telegram] <thecompiler> hehehe yes, I thought about that too, that'd be the ultimate passive-aggressive solution
    [telegram] <thecompiler> can't be that hard to open a website and enter your email address on it
    [telegram] <thecompiler> how did they even manage to subscribe if they're too dumb to do that
    [telegram] <cmaureir> yes (re @thecompiler: thanks! Both addresses? (rensb3rg@gmail.com and sid200403@gmail.com))
    [telegram] <cmaureir> I have no idea how we end up on those situations (re @thecompiler: how did they even manage to subscribe if they're too dumb to do that)
    PySide Bot
    @pysidebot_gitlab
    [telegram] <tomazcanabrava> well, I got death threats for developing at kde in the past... (re @cmaureir: I have no idea how we end up on those situations)
    [telegram] <cmaureir> people with tons of free time :(
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Melon> Hello! Qt, not qml.
    QtListview draw all elements or only that elements that can be seen in the screen? As I remember it's the first choice, right? So, there is no lazycolumn equivalent in qt as for example in mob dev.
    I want to do listview with custom widget. I saw that I can setItemWidget but read that it can be costly(efficiency).
    I thought if did lazycolumn style it will be better - draw only that elements that shown in the screen. I remember that I made my own lazycolumn before but with delegete but though maybe in pyside6 there is new feature. Or I missing something. Decided to check.
    Sorry, if it's messy or it's silly question.
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Melon> Sorry, I wanted delete the message but it was already checked. đŸ™ˆ
    PySide Bot
    @pysidebot_gitlab
    [irc] <boris_> Hello ! Is there a way to use a QlistWidget with setItemWidget(item,widget) and align it to the center of the QListWidget ?
    [irc] <boris_> what I have is a QListWidget with custom widgets in it, that I would like to align in the center
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Dridk> I will give all my love, if someone succeed to change border color of a QCheckbox displayed in a QListWidget ( item.setCheckable.. )
    PySide Bot
    @pysidebot_gitlab
    [telegram] <Sergio> Ola uma duvida posso desenvolver sistemas comercial usando pyside6 ou tenho que obter licença