Results 1 to 2 of 2

Thread: Displaying picture included with html code

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Posts
    72
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Displaying picture included with html code

    This is html code which I use in my QLabel text field to include picture:
    [html]
    <html>
    <head>
    <meta name="qrichtext" content="1" />
    </head><body style=" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">

    <p align=center style="color: dimgray; " margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
    <span style=" font-size:80pt;">
    Evaluator
    </span>
    </p>
    <br>
    <br>
    <br>

    <p style="color: grey; " margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
    <span style=" font-size:20pt;">
    <CENTER>< img src="Micronas-Logo-Transparent.PNG" ></CENTER>
    <CENTER>Integrated Test Environment</CENTER>
    </span>
    </p>


    </body>
    </html>[/html]
    Now, I can't get this picture to show when I am running application, and I assume the problem is resource file. What do I need to type in my .qrc file to get my application to show picture included in this html code. Is there any tool to generate .qrc file or it should be made manually?
    Last edited by wysota; 28th November 2006 at 06:56. Reason: Changed [code] into [html]

Similar Threads

  1. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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.