Results 1 to 2 of 2

Thread: QWebView and resource manager

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default QWebView and resource manager

    Hey folks.

    I want to insert a picture from the resource qrc file into a QWebView.

    Is it possible?
    Last edited by bunjee; 9th December 2009 at 17:04.

  2. #2
    Join Date
    Jan 2008
    Location
    Forstinning, Germany
    Posts
    10
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QWebView and resource manager

    Yes should be possible using the qrc: prefix for your pic path.

    for example:

    Qt Code:
    1. <img src="qrc:/image.png">
    To copy to clipboard, switch view to plain text mode 

  3. The following 3 users say thank you to hwerglmir for this useful post:

    bunjee (14th December 2009), desertpilot (16th November 2010), lyhoanghai (23rd August 2010)

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.