Qt source code. There are billions of paint methods implemented. Start at QPushButton:: paint().
Qt source code. There are billions of paint methods implemented. Start at QPushButton:: paint().
graciano (19th September 2009)
Ah, I'm going crazy. I cant keep that in mind! It's not print and neither it's paint: It's QWidget::paintEvent(QPaintEvent *event)!
Qt Code:
{ //... protected: private: QImage m_normal;//... }; { // do your painting here }To copy to clipboard, switch view to plain text mode
graciano (19th September 2009)
I see ... thanks for the tips.
I will try this way.
It should be possible to obtain the same effect purely by using stylesheets too.
graciano (19th September 2009)
Yess ... that's what i did for not making the solution "too complex" for the moment.
this did the job:
Qt Code:
w.setStyleSheet("QPushButton {border-style: outset; border-width: 0px;}");To copy to clipboard, switch view to plain text mode
Thanks all
Bookmarks