TabToolbar icon indicating copy to clipboard operation
TabToolbar copied to clipboard

Background color not changed when changing style

Open MCA4213 opened this issue 5 years ago • 4 comments

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.

MCA4213 avatar Mar 10 '20 13:03 MCA4213

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.

SeriousAlexej avatar Mar 10 '20 23:03 SeriousAlexej

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 avatar Mar 26 '20 12:03 MCA4213

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?

MCA4213 avatar Mar 26 '20 12:03 MCA4213

@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!

gitatomic avatar Jun 13 '20 09:06 gitatomic