Change QwtPlot background while using dark mode gui? - c++

When I dissable dark mode which is provided via BreezeStyleSheet:
https://github.com/Alexhuszagh/BreezeStyleSheets
it works (I can change background with set canvas palette to whatever I want and then attach it to QwtPlot). But when I use style sheet it seems almost impossible to set it. Have anybody some ideas how to fix this issue ?

For custom widget based on QwtPlot it will be:
this->canvas()->setStyleSheet("background-color: black;border: none;");
in constructor.

Related

How do I set a background image to mainwindow?

I am trying to set the background image of the mainwindow through setStyleSheet() but this also applies the image to its children including textbrowsers and TextEdit. How can I accomplish this without doing so?
Try to add What you have tried so far,with out that we cant help.
Try the below one
setStyleSheet("MainWindow {background-image:url(:/files/MainPic/Technology-Banner1.jpg)}");

Conditional Formatting in PowerBI

I want to conditionally change the color of a font or text box background color or rectangles background color on a certain value. As far as i have researched its only possible in a matrix or a table. Is there any way i can do this? I want to change the color of the "condition" box on bases of a value, please see the attached screen shot. I would be very thankful if anyone can help me achieve it or any other work around to achieve this.
I would use the Custom Visual: Card with States. It's States properties let you dynamically control the colors of the font or background.
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104380967?src=office&tab=Overview

Qt QMainWindow Control Dropshadow and its Color

I was just wondering, is there any way at all to control the drop-shadow effect around an active QMainWindow? Here is a picture:
I would like to be able to control the color of that shadow, and possibly even change the size of it, too. Is there any way to do this? I am adding CSS as a tag because i'm pretty sure this might require using their skinning system.

MFC Background image issue

I add a background image to my window, and other images do not appear.
The background image overlap other images
Image:
http://i.stack.imgur.com/efb2z.png
how to fix ?
Code
/* ENTER */
CPngImage imagea;
imagea.Load(IDB_PNG1);
image.SetBitmap((HBITMAP)imagea.Detach());
/* PROGRESS BAR */
CPngImage imageaa;
imageaa.Load(IDB_PNG2);
image2.SetBitmap((HBITMAP)imageaa.Detach());
/* BACKGROUND */
CPngImage imageaaa;
imageaaa.Load(IDB_PNG3);
image3.SetBitmap((HBITMAP)imageaaa.Detach());
New poblem
http://i.stack.imgur.com/wIurg.png
are you using the SetWindowPos function properly ?
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633545%28v=vs.85%29.aspx
You need to use OnEraseBackground().
There are two ways to make a background image:
- draw directly on the dialog in OnEraseBackground()
- put an image behind all other controls
There are some subtle pro and cons to each approach, but for most application both should work. It seems you're using the second method. What you need to do is make sure the background control is all the way at the bottom of the control stack (z-pos - use SetWindowPos() to send it to the background, or just create it before all others, but then you can't use the dialog editor) and also to make sure your background control has WS_CLIPSIBLINGS set.
CPngImage supports the MFC framework infrastructure and is not intended to be used directly from your code.

Qt, Color Picker Dialog?

Is there a color picker dialog for Qt like the following?
Also it needs to have a OnColorChanged signal which is called when ever the selected color changes. I want to give a live preview when they are changing the colors, that is why.
Using google I could only find this one that was a triangle in side of a circle and personally I think it looks ugly.
QColorDialog does exactly what you want.
(It is easy to find when you Ctrl-F through the list of Qt classes for "color")
Qt has now a "normal" color picker: http://doc.qt.io/qt-5/qcolordialog.html#details