Results 1 to 2 of 2

Thread: QString::toStdString in PyQt Question

  1. #1
    Join Date
    Sep 2009
    Posts
    60
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QString::toStdString in PyQt Question

    If I have this code in PyQt:
    Qt Code:
    1. b.toStdString()
    To copy to clipboard, switch view to plain text mode 
    What is returned by toStdString? b is a QString. Also, is there a reference site for PyQt similar to the Trolltech Qt reference site (http://doc.trolltech.com/)?

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QString::toStdString in PyQt Question

    I´m not altogether too familiar with PyQt, but it might be that it just returns a python string. Maybe you can get zome information by reading the python docstring:
    Qt Code:
    1. help(QString.toStdString) # if I recall correctly
    To copy to clipboard, switch view to plain text mode 
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. QMovie supports no animation formats (PyQt on Windows)
    By jmeyer in forum Qt Programming
    Replies: 3
    Last Post: 5th May 2009, 08:44
  2. Replies: 1
    Last Post: 30th July 2008, 23:39
  3. Question about QCalendarWidget with PyQT
    By hf in forum Qt Programming
    Replies: 2
    Last Post: 21st April 2008, 22:40
  4. PyQt QTimer problem { FIXED }
    By WinchellChung in forum Newbie
    Replies: 0
    Last Post: 1st March 2008, 16:50
  5. Replies: 2
    Last Post: 21st February 2008, 22:35

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.