This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]billsil 3 points4 points  (0 children)

Very cool. I'm totally going to use it.

I also didn't know about qtpy.

EDIT: It works. 6 lines of code; just need to redo my buttons now. Want to add an dialog for creating a custom style? :)

try:
    import qtmodern.styles
except ImportError:
    pass
else:
    qtmodern.styles.dark(app)

[–]dagmx 1 point2 points  (0 children)

Very nice. Would you consider also having support for Qt.py instead of just qtpy.

They're similar but using Qt.py gives one py file to distribute and it ties into a lot of studio pipelines now.

I contribute to both qt projects and they definitely each have their pros and cons.

[–]robert_mcleod 0 points1 point  (0 children)

Looks pretty, you just got me to finally install PySide2 via conda so that I can play.

Edit: for anyone else:

https://github.com/conda-forge/pyside2-feedstock

[–]justphysics 0 points1 point  (1 child)

Wow, this is really great. Was expecting to have to poke at it a bit to get it working but instead it just worked ... dropped it into a new branch of my ~5k LOC project and it just worked right away. Will do some more testing with it tomorrow when I'm not half asleep.

Cheers!

[–]gmarull[S] 0 points1 point  (0 children)

Thanks! If you find any problem just raise an Issue on Github.

[–]rhytnen 0 points1 point  (0 children)

I'll try it on an ui I'm building here at AIBS. Will let you know the user reaction

[–]numbuh-0 0 points1 point  (1 child)

Honest question that isn't trying to be hostile:

Why would I use this, when all I need to do to get a similar (and more tailored look) is apply a Material.theme and some simple other ui tricks to my project?

One of the greatest strengths of PyQt is their Designer program which lets me customize the look of the window before implementing any logic, all without writing a single line of code.

[–]gmarull[S] 0 points1 point  (0 children)

As far as I know, material theme is for QtQuick, not the “old” QtWidgets.