Results 1 to 5 of 5

Thread: Qt 4.7 : error: call of overloaded ‘QString(int)’ is ambiguous

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    18
    Thanked 5 Times in 5 Posts

    Question Qt 4.7 : error: call of overloaded ‘QString(int)’ is ambiguous

    Hello,

    today i tried to port my App from Qt 4.5.3 to Qt 4.7 (under ubuntu 32bit 10.04 )
    I got several: error: call of overloaded ‘QString(int)’ is ambiguous

    Detailed Error Message:
    Astro_Diplom/ComaGui/ui_jobs.h: In member function ‘void Ui_Jobs::setupUi(QDialog*)’:
    Astro_Diplom/ComaGui/ui_jobs.h:86: error: call of overloaded ‘QString(int)’ is ambiguous
    qtsdk-2010.05/qt/include/QtCore/qstring.h:428: note: candidates are: QString::QString(const QByteArray&)
    qtsdk-2010.05/qt/include/QtCore/qstring.h:426: note: QString::QString(const char*)
    qtsdk-2010.05/qt/include/QtCore/qstring.h:727: note: QString::QString(const QString&)
    qtsdk-2010.05/qt/include/QtCore/qstring.h:106: note: QString::QString(QChar)
    qtsdk-2010.05/qt/include/QtCore/qstring.h:105: note: QString::QString(const QChar*)
    Astro_Diplom/ComaGui/ui_jobs.h:89: error: call of overloaded ‘QString(int)’ is ambiguous


    My custom widget "Form" is inherited from QWidget...
    Many Form widgets are in Jobs and..
    Jobs is inherited from QDialog and the compiler stops here..

    ui_jobs.h
    Qt Code:
    1. class Ui_Jobs
    2. {
    3. public:
    4. ...
    5. Physical *widgetJobTemperatur;
    6. ...
    7. void setupUi(QDialog *Jobs)
    8. {
    9.  
    10. ...
    11.  
    12. widgetJobTemperatur = new Form(Jobs); //Compiler stops here..
    13. widgetJobTemperatur->setObjectName(QString::fromUtf8("widgetJobTemperatur"));
    14. widgetJobTemperatur->setGeometry(QRect(110, 197, 217, 117));
    15. }
    16.  
    17. }
    To copy to clipboard, switch view to plain text mode 
    It seems that Qt4.7 is somehow more restrictive during compilation, than 4.5.3 ?
    Under 4.5.3 everything is working fine..?

    thank you for any hint,
    Astronomy

    __________________________________________________ ____________
    (Form are physical widgets, i took a bad name and hadn't had time to change it..)
    Last edited by Astronomy; 25th September 2010 at 12:27.

Similar Threads

  1. Replies: 4
    Last Post: 24th August 2010, 15:28
  2. Replies: 5
    Last Post: 30th December 2009, 23:40
  3. call function as Qstring
    By jcr in forum Qt Programming
    Replies: 1
    Last Post: 30th May 2009, 01:35
  4. virtual overloaded functions and base class function call...
    By nouknouk in forum General Programming
    Replies: 7
    Last Post: 11th March 2006, 21:26
  5. ambiguous call to overloaded function
    By :db:sStrong in forum Qt Programming
    Replies: 18
    Last Post: 10th February 2006, 09:36

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
  •  
Qt is a trademark of The Qt Company.