Hi All

This question is mainly for the MITK style sheet experts.

I am developing an application (C++, QT on windows) using MITK. My
application started to use a style sheet but I found it was not getting
applied on the user interface.

Debugging MITK code I found that I had to hook my style sheet
using QtPreferences::QT_STYLE_NAME, and then adding my style sheet to
IQtStyleManager. So this works.

But I also see that berryNativeTabFolder.cpp (Ln: 172) in void
NativeTabFolder::UpdateColors(), the viewForm gets the style applied again
and again as it connected through mousePressed event.

So my questions are as follows:

1. Why there are separate style sheets provided (e.g. defaultstyle,
defaultstyle-activetab, defaultstyle-tab) ? Or precisely why there is
hard-coding of expected names e.g. -activetab.qss and defaultstyle-tab.qss
etc.)

2. Why it is applied again and again. Setting it once would have the same
impact, right?

Ideally, according to me the best design would be, MITK should have a list
(like a link list) of qss file (irrespective of the name of the qss files)
and it should apply this list once on the qApp. If any user (like me),
wishes to use my own style sheet, MITK should provide an interface where I
can set my list and MITK should iterate it and apply them all in the same
order I have provided my list.

Please share your thoughts.

Thanks and Regards
Rachit
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to