Results 1 to 3 of 3

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

  1. #1
    Join Date
    Dec 2011
    Posts
    60
    Thanks
    12
    Thanked 2 Times in 2 Posts
    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,318
    Thanked 879 Times in 827 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

  3. #3
    Join Date
    Dec 2011
    Posts
    60
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

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

    Thanks Uwe. In case anyone has this issue in the future, my problem was statically linking to the qwt library twice within an app. Once in the main tool and a second time in a plugin. I removed the second link (from the plugin) and the warning is now gone.

  4. The following user says thank you to alketi for this useful post:

    d_stranz (2nd September 2022)

Similar Threads

  1. Qt warning of type conversion already registered
    By nyaruko in forum Qt Programming
    Replies: 16
    Last Post: 12th May 2015, 11:50
  2. Type conversion already registered problem
    By Momergil in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2014, 03:10
  3. Replies: 2
    Last Post: 27th November 2013, 01:56
  4. Replies: 0
    Last Post: 21st November 2013, 07:39
  5. Type conversion on container templates
    By Alir3z4 in forum Qt Programming
    Replies: 18
    Last Post: 30th January 2012, 00: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.