Results 1 to 2 of 2

Thread: QwtText warning: Type conversion already registered from type QString to type QwtText

  1. #1
    Join Date
    Dec 2011
    Posts
    57
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QwtText warning: Type conversion already registered from type QString to type QwtText

    I'm using qwt-6.2-git and am getting a warning "Type conversion already registered from type QString to type QwtText" in the terminal when doing the following:

    Qt Code:
    1. QString myString("hello");
    2. QwtText myText(myString);
    To copy to clipboard, switch view to plain text mode 

    I can't find anything in my code that's registering a QString to QwtText.

    Is there a way I can turn off this warning or understand what's causing it?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,293
    Thanked 876 Times in 824 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtText warning: Type conversion already registered from type QString to type Qwt

    Quote Originally Posted by alketi View Post
    I'm using qwt-6.2-git and am getting a warning "Type conversion already registered from type QString to type QwtText" in the terminal when doing the following:

    Qt Code:
    1. QString myString("hello");
    2. QwtText myText(myString);
    To copy to clipboard, switch view to plain text mode 

    I can't find anything in my code that's registering a QString to QwtText.

    Is there a way I can turn off this warning or understand what's causing it?
    The converter is registered here: https://sourceforge.net/p/qwt/git/ci...c/qwt_text.cpp
    Maybe you can use the debugger to find out why it is called twice or if there is another place where such a converter is registered.

    Uwe

Similar Threads

  1. Qt warning of type conversion already registered
    By nyaruko in forum Qt Programming
    Replies: 16
    Last Post: 12th May 2015, 10:50
  2. Type conversion already registered problem
    By Momergil in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2014, 02:10
  3. Replies: 2
    Last Post: 27th November 2013, 00:56
  4. Replies: 0
    Last Post: 21st November 2013, 06:39
  5. Type conversion on container templates
    By Alir3z4 in forum Qt Programming
    Replies: 18
    Last Post: 29th January 2012, 23:56

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.