Results 1 to 5 of 5

Thread: How Can I rewrite qwtDial Class

  1. #1
    Join Date
    Feb 2008
    Posts
    36
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default How Can I rewrite qwtDial Class

    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
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How Can I rewrite qwtDial Class

    It should be:
    Qt Code:
    1. class MyDial : public QwtDial
    2. {
    3. public:
    4. MyDial( QWidget * parent = 0 );
    5. };
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Feb 2008
    Posts
    36
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How Can I rewrite qwtDial Class

    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
    Attached Files Attached Files

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How Can I rewrite qwtDial Class

    What's the relation between MyDial and Gostergem classes?

  5. #5
    Join Date
    Feb 2008
    Posts
    36
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How Can I rewrite qwtDial Class

    Sorry I have sent wrong files. I solved the problem

Similar Threads

  1. How to use Signal through direct connection
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2007, 08:07
  2. Creating object of other class in Run() method
    By santosh.kumar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 16:05
  3. Replies: 2
    Last Post: 16th March 2007, 10:04
  4. Replies: 2
    Last Post: 4th May 2006, 20:17
  5. How to propagate from one class to another
    By mahe2310 in forum Qt Programming
    Replies: 15
    Last Post: 20th March 2006, 02:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.