On 03/07/2017 03:40 AM, David Faure wrote:

> OK, so it's for all comboboxes in a toolbar?
> I suggest that ThornStyle tests
> qobject_cast<QToolBar*>(widget->parentWidget()) in the right places then
> (when painting comboboxes), and paints things differently when that's the
> case.

I like that idea.  That should work.

> No, only if the stylesheets were just setting colors.

I should have been more clear.  Yes, I understand what QPalette does, 
and it isn't going to replace every local stylesheet.  Thus this discussion.

> Can you show me? I can't believe that Qt developers would say that in this day
> and age.

I can't find the thread I was talking about, but it was probably just 
old.  The things they were saying resonated with my perspective from 
several years ago, but I don't have any trouble appreciating why 
thinking would have changed since then.

Stylesheets seemed like the best thing ever, but what I tried to do with 
stylesheets was a complete nightmare.  I was already thinking way back 
then that QStyle would be a better way to go, now that I remember.

For another thing, I use some commercial Qt software that has exactly 
the same problems with file dialogs and random other problems.  All the 
screen caps in the manual for that stuff are done with Windows, and it 
really highlights how mangled the Linux version is on KDE5.  I can't 
whine to developers who are nice enough to offer their product to the 
handful of freaks who want to use Linux, but if that software were open 
source I would want to go in and fix that.  I imagine the solution for 
them is the same: get rid of stylesheets!

> Yes you had to do that once you started using stylesheets, because they made
> QPalette useless.

Ah yes.  Now I remember.

> QPalette is guaranteed to work, as long as you don't use stylesheets.

No danger of that ever happening again.

You forgot one of the reasons against.  From Qt version to Qt version, 
subtle things changed and broke along the way.  What was working was no 
longer working.  That is one reason why there were so many layers of hacks.

I deeply appreciate the work you did, and am committed to abolishing the 
last remaining stylesheets.  I will finish that work as time allows. 
Sadly, this has been an especially horrific week.

-- 
D. Michael McIntyre

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to