Results 1 to 3 of 3

Thread: cannot call constructor 'Qstring::Qstring' directly

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: cannot call constructor 'Qstring::Qstring' directly

    Please embed your code between [CODE ] [/ CODE] tags

    As I see, your syntax is wrong.
    You have to invoke the constructor of QString as
    Qt Code:
    1. QString("%1%2").arg(x_cord).arg(y_cord)
    To copy to clipboard, switch view to plain text mode 
    And you can't setText() to QHash item.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: cannot call constructor 'Qstring::Qstring' directly

    Quote Originally Posted by rawfool View Post
    And you can't setText() to QHash item.
    The hash contains QLineEdit pointers so that is ok.

    Cheers,
    _

Similar Threads

  1. Pass QString array to constructor
    By Ozzy in forum Qt Programming
    Replies: 1
    Last Post: 4th February 2014, 20:36
  2. Replies: 2
    Last Post: 11th August 2011, 15:42
  3. Replies: 4
    Last Post: 25th September 2010, 12:58
  4. call function as Qstring
    By jcr in forum Qt Programming
    Replies: 1
    Last Post: 30th May 2009, 01:35
  5. Replies: 4
    Last Post: 31st January 2008, 20: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
  •  
Qt is a trademark of The Qt Company.