How does "this won't work"?Originally Posted by incapacitant
Well... I didn't say that it will, but you should start from the simplest solutionsOriginally Posted by incapacitant
![]()
How does "this won't work"?Originally Posted by incapacitant
Well... I didn't say that it will, but you should start from the simplest solutionsOriginally Posted by incapacitant
![]()
incapacitant (20th March 2006)
It shows my pushbutton + pushbutton text value + button shaPe.
It shows nothing of the background.
I agree we should try simplest things first.
Last edited by incapacitant; 20th March 2006 at 21:33. Reason: spelling mistake
Either this is a wrong approach or it's the QPalette bug. Try to subclass QAbstractButton and draw only text in paintEvent.
incapacitant (21st March 2006)
Actually I would like to see nothing from my button, not even the text : 100% transparent.
But subclassing as you propose and using paintEvent is beyond my knowledge. But thank you for helping out. I hope I can find some information about this subclassing in the QT3 book.
You should rather look for a book about programming in C++.Originally Posted by incapacitant
http://www.qtcentre.org/forum/showthread.php?t=29
http://www.qtcentre.org/index.php?op...catid=14&id=27
Qt Code:
{ public: protected: };To copy to clipboard, switch view to plain text mode
incapacitant (21st March 2006)
I am more impressed by your skills than by my lack of knowledge (which is huge!!).
Of course the piece of code you gave me works 100%.
Thank you very much.
Bookmarks