Results 1 to 2 of 2

Thread: how to create html file in memory

  1. #1
    Join Date
    Jan 2007
    Posts
    68
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Question how to create html file in memory

    I'd like to create a html file, without having to write it on my hdd.

    This in memory created html should be viewable with QTextEdit & QTextBrowser.

    Is this somehow possible?

  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: how to create html file in memory

    Yes, create it using a QString variable and then use setHtml() to set it to QTextEdit or QTextBrowser.

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

    darksaga (30th August 2007)

Similar Threads

  1. Replies: 4
    Last Post: 18th December 2009, 18:55
  2. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  3. Support for File Mapped Memory?
    By Jachyra in forum Qt Programming
    Replies: 8
    Last Post: 5th February 2007, 12:44
  4. Replies: 1
    Last Post: 18th July 2006, 12:06
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 10:04

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.