Results 1 to 4 of 4

Thread: QDoubleValidator porting to Linux issue

  1. #1
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default QDoubleValidator porting to Linux issue

    When we try to port a Qt4 code from windows to linux, we are getting following error
    error: no matching function for call to ?QDoubleValidator::QDoubleValidator()?
    It is working fine in windows. Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDoubleValidator porting to Linux issue

    Does this work?

    Qt Code:
    1. #include <QDoubleValidator>
    2.  
    3. int main() {
    4. return 0;
    5. }
    To copy to clipboard, switch view to plain text mode 
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    mqt (9th April 2014)

  4. #3
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QDoubleValidator porting to Linux issue

    QDoubleValidator v;
    has not worked. But QDoubleValidator *v=new QDoubleValidator (0); worked
    Thanks

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDoubleValidator porting to Linux issue

    What do you mean that it has "not worked"?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 26th March 2013, 11:35
  2. porting issue
    By sajis997 in forum Newbie
    Replies: 3
    Last Post: 10th December 2012, 04:12
  3. Issue porting From Qt4.1.x To Qt4.4.1
    By kutmastak in forum Installation and Deployment
    Replies: 0
    Last Post: 17th October 2008, 15:48
  4. Linux to Windows Porting
    By qtprogrammer12345 in forum Qt Tools
    Replies: 1
    Last Post: 23rd May 2008, 07:28
  5. Porting Qt3 linux app to windows qt4
    By Philip_Anselmo in forum Qt Programming
    Replies: 7
    Last Post: 15th May 2006, 18:44

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.