Results 1 to 2 of 2

Thread: Span values are not coming in html

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Span values are not coming in html

    I am writing the page as html. where the span values are question mark. no values are displayed.

    Qt Code:
    1. out << m_WebView->page()->currentFrame()->toHtml() << "\n";
    To copy to clipboard, switch view to plain text mode 


    var msg_proce = "<span style=color:red>??????...</span>";
    var msg_success = "<span style=color:red>????</span>";
    <span style=font-size:15px;color:red>??????????,<a href=?action=valet.ordersell>????</a></span>

    HOW CAN I GET THE SPAN VALUES. PLEASE HELP.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,595
    Thanks
    13
    Thanked 1,588 Times in 1,517 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Span values are not coming in html

    I assume by "span values" you mean the span element text. You access that directly with QWebElement::toPlainText().

    If you are complaining because you are writing the HTML to a text stream (of some unspecified nature) and cannot read it afterward then you need to be sure that the file encoding is correct in both the writer and whatever you are inspecting the result with. Saving, for example, UTF-8 encoded Hindi text to a Latin1 stream or reading it in a Latin1 editor will not be satisfying (often displaying a placeholder character for bytes it cannot make sense of). Exactly what you have there is unknown to us, for all we know the span elements actually contain question marks.

Similar Threads

  1. QTextEdit html span order
    By Seddy in forum Qt Programming
    Replies: 0
    Last Post: 30th April 2013, 09:52
  2. Replies: 0
    Last Post: 6th December 2012, 16:54
  3. How to convert string hex values to its real binary values?
    By AttilaPethe in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2012, 22:47
  4. QTableWidget span !
    By stephanyShulter in forum Newbie
    Replies: 2
    Last Post: 27th October 2008, 14:20
  5. QStandarItemModel and span
    By chak_med in forum Qt Programming
    Replies: 1
    Last Post: 4th July 2006, 09:27

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.