[Qt-creator] Drawing on QWidget
Alex Williams
linuxfpga at gmail.com
Mon Jul 6 00:57:39 CEST 2009
> I understand that this touches a fundamental problem of epistemology
> but most people I am aware of distinguish between "I cannot observe it"
> and "it does not exist". Those people might also be tempted to take
> http://doc.trolltech.com/4.5/designer-using-custom-widgets.html as an
> indication that your proposition is wrong.
If something is not clear enough or hard to find = it's almost same as
"it does not exists"... I did know that for such primitive action as
drawing something - I nedd create widget...
> This seems to use definition of 'analog/competitor' that I would not
> actively use myself, but out of curiosity: How would that work with
> wxWidgets?
In wxWidgets everything is simple:
void Draw(wxPanel *DS)
{
wxSize DC_Size;
DC_Size = DS->GetSize();
wxClientDC CDC(DS);
wxBufferedDC DC(&CDC, DC_Size);
wxBrush BackBrush(*wxWHITE);
DC.SetBackground(BackBrush);
DC.Clear();
}
that's all, no problems, no widgets, just paint on everything you want...
More information about the Qt-creator-old
mailing list