SeriousAlexej / TabToolbar

A small library for creating tabbed toolbars
Other
284 stars 108 forks source link

Background color not changed when changing style #7

Open MCA4213 opened 4 years ago

MCA4213 commented 4 years ago

Background color of the toolbar is not changed when changing style on click. I found that changing the fonction TabToolbar::SetStyle by using qApp->setStyleSheet is making that works.

SeriousAlexej commented 4 years ago

TabToolbar::SetStyle internally calls QWidget::setStyleSheet on self. Could you please provide more details about how it is reproduced? Does the app use some custom C++ coded style, or maybe it has its own stylesheet before the call to TabToolbar::SetStyle? If yes, that might be the answer. Screenshots \ OS info etc are welcome.

MCA4213 commented 4 years ago

Hi, and thanks for the reply. First I am running on Windows 10 x64 system, and using Visual Studio 2019 and Qt 5.13.0. Without the change that I made the toolbar stay always with its first theme. it cannot be changed.

MCA4213 commented 4 years ago

I want also to say thank you for this project, I had before an experience with QTitanToolbar and I think with some further work we can achieve a similar solution in open source. I started modifying your code to work on border-less window and I got some results. Capture

Now you can choose between the normal window and this one, you can add a specific tab(the last one in red) , a menu for file, you can drag and move the border-less window, .....

But still some problems on resizing manually the window with mouse on the output rectangle (only possible on right bottom corner), but other things are working beautifully.

I don't know if there is a way to push my work here (I am not familiar with GitHub), perhaps it will help others or we can improve the work?

gitatomic commented 4 years ago

@SeriousAlexej Hey, great work, congrats. Using it in my project "GitAtomic" to port it from MFC to QT. Thanks and keep up the good work!