QcustomPlot control according to business requirements, interface style is changed to black background,
Tests found that the initial display normal:

Switch to the log TAB page:

Switch back and found qcustomplot display abnormal:

At this time if I drag the edge of the window, the resize event trigger host interface, the electronic map TAB page back to normal again,
In addition, I tried, if I don't custom interface, the background color of axes and so on, there will be no this problem,
You life, also many thanks ~
CodePudding user response:
https://bbs.csdn.net/topics/392323182
CodePudding user response:
Thank you, this way I know, I just want to know how real solution, this should not program code,Also use this way to resize, if 2 times the resize method calls together also not line, to process messages between circulation can display properly:
this-> The resize (this - & gt; The size () - QSize (1, 1));
QCoreApplication: : the processEvent ();
this-> The resize (this - & gt; The size () + QSize (1, 1));
I was on the winning kirin system development (virtual machine vmware),
CodePudding user response:
Want to really address, you can refer to Qt related source code, anyway, Qt is open source,