silx icon indicating copy to clipboard operation
silx copied to clipboard

Added StackViewPLugin for QtDesigner

Open alexmarie78 opened this issue 5 years ago • 3 comments
trafficstars

Hello,

I am currently working with Qt Designer on a project, still I use a lot of silx widgets also.

Thus I tried to create a plugin to have one of silx widget in Qt Designer. I made up this branch (in my fork) because I may create other plugins for widgets that I need.

I think it could be nice to append this to the silx repository.

However I don't know how really it works, I just created it by using the already existing plugins. So if anything seems wrong or not understand, I would like to have some help, or advices.

Thanks in advance

Alexandre

alexmarie78 avatar Feb 28 '20 08:02 alexmarie78

Hi,

Few comments:

  • You can remove PyQt4, we do not support it anymore
  • In case, you also can use "promote widget" from Qt designer, which does not require any plugins.

vallsv avatar Feb 28 '20 10:02 vallsv

Thanks for your answer,

I think it could be nice to have these as plugins so anyone that uses Qt Designer could use it too.

If you want I can clean the already existing plugins from PyQt4 and refresh the dates.

I will try to "promote widget" as you adviced me, but I am still up to create new plugins for enhance silx if you want to.

alexmarie78 avatar Feb 28 '20 12:02 alexmarie78

Thanks for the contribution.

A few comments:

    def icon(self):
        return icons.getQIcon('stack-view')

This is likely to fail as it is looking for an icon file in silx/resources/gui/icons/ and there is no stack-view.svg or stack-view.png file there. You can use 'plot-window-image' instead.

There is a little bit of doc on Qt designer plugins here: https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html#writing-qt-designer-plugins

Also, feel free to use the name of your institution as the copyright of things you add.

t20100 avatar Mar 02 '20 12:03 t20100

Hi, I'm closing this PR because development on it is stalled and it has conflicts since PR #3991. Do not hesitate to rebase the branch and re-open the PR if needed.

t20100 avatar Dec 11 '23 14:12 t20100