PDA

View Full Version : How Can I rewrite qwtDial Class



validator
19th February 2008, 07:54
Hi. I want to rewrite qwtdial class .I create an instance of MyDial class from graphics class but it can not be created and I do not know that I must give parameter type of mydial constructor. I send my sample . can you examine

jacek
19th February 2008, 23:31
It should be:
class MyDial : public QwtDial
{
public:
MyDial( QWidget * parent = 0 );
};

validator
20th February 2008, 07:42
Thank for reply. I have written myDial class but I have new problems. I want to draw two different needle for mydial so I override drawContents method .It can not work because needles have been cerated same .I send myDial cpp and .h

jacek
20th February 2008, 21:05
What's the relation between MyDial and Gostergem classes?

validator
21st February 2008, 07:25
Sorry I have sent wrong files. I solved the problem