Qt Code:
class MyToolbar : public QToolbar { ... }; void MyToolbar::paintEvent(... event) { QToolbar::paintEvent(event); // do your own stuff. }To copy to clipboard, switch view to plain text mode
what do you mean by 'change the paint event' ?
Qt Code:
class MyToolbar : public QToolbar { ... }; void MyToolbar::paintEvent(... event) { QToolbar::paintEvent(event); // do your own stuff. }To copy to clipboard, switch view to plain text mode
what do you mean by 'change the paint event' ?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
^NyAw^ (10th May 2012)
Hi,
Thanks, it works. "change the paint event" means "redefine the paint event". It's a litteral translation of my thinking language. :P
Òscar Llarch i Galán
Bookmarks