[quote=“netspirit”]. . .I’m wondering is there a better way to set up the border color today? [/quote]What do you mean better? What is wrong with the Rene’s method? It does what you want.
On the other hands, as far as I know you use the Qt-layer anyway.
This means, you can put the TQtWidget (embedded TCanvas) object into QFrame ( doc.trolltech.com/4.4/qwidget.ht … Sheet-prop
to customize doc.trolltech.com/4.4/stylesheet … ing-qframe
For example, the simple addition:QFrame *frame = new QFrame();
TQtWidget *canvas = new TQtWidget(frame);
frame->setStyleSheet("QFrame{border: 6px solid green; border-radius: 12px; padding: 2px;}");to the notorious HelloCanvas example will change its appearance. (see attachment)
However, it seems this is quite expansive approach to do such simple thing like the coloring the TCanvas border.