I painting the Button,it is able to show on the widget, but when I do this like that
MyButton s; s.show(); it doesn't work. the error says
void QWidget::show() is inaccessible
within this context
I painting the Button,it is able to show on the widget, but when I do this like that
MyButton s; s.show(); it doesn't work. the error says
void QWidget::show() is inaccessible
within this context
We can't tell with out the code.
what you meaning
Added after 6 minutes:
painted Button from http://www.qtcentre.org/wiki/index.php?title=AeroButton
Button show in this way
Button s;
s.show();
don't work
but
use this method
QPushButton btn;
btn.show();
it works. why?
Last edited by insert; 15th November 2010 at 09:16.
One possible reason is that you inherit private from QPushButton, check the line:
Qt Code:
To copy to clipboard, switch view to plain text mode
LE: Why did you posted the topic in here, next time post technical issues in NewBie or Programming if is Qt related topic, or General Programming if is' general C++ topic, you get answers faster because many more people see your question.
Last edited by Zlatomir; 15th November 2010 at 09:34.
insert (15th November 2010)
thanks, but it's not really effectively. maybe some else mistake.
Added after 4 minutes:
sorry, it works. you say is correct! thank you !
Last edited by insert; 15th November 2010 at 09:48.
Bookmarks