Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background color not changed when changing style #7

Open
MCA4213 opened this issue Mar 10, 2020 · 4 comments
Open

Background color not changed when changing style #7

MCA4213 opened this issue Mar 10, 2020 · 4 comments

Comments

@MCA4213
Copy link

MCA4213 commented Mar 10, 2020

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
Copy link
Owner

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
Copy link
Author

MCA4213 commented Mar 26, 2020

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
Copy link
Author

MCA4213 commented Mar 26, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants