Results 1 to 4 of 4

Thread: My first question on this forum.... very imp for me...

  1. #1
    Join Date
    Sep 2011
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default My first question on this forum.... very imp for me...

    Hello everyone,

    I am very much new to qt. I am facing couple of problems regarding the use of Qfile function.

    The problems are listed below :

    1.) When I am using Qfile class to open file, then it only displays text in the file and the image part doesn't show image.

    2.) Can I use hyperlink facility in the file that is open to view using Qfile or any other class of qt.

    Waiting for your precious and quick response.

    Thanks

    Mihir

  2. #2
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    164
    Thanks
    1
    Thanked 26 Times in 26 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: My first question on this forum.... very imp for me...

    It would be nice indeed to know what kind of a file you are trying to open. Are you new to Qt or Qt and C++?
    Don't write a post just to thank someone, use "Thanks" button.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: My first question on this forum.... very imp for me...

    ? QFile is for writing or reading text/data to a file, not for showing images or parsing any hyperlink.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: My first question on this forum.... very imp for me...

    Reading the content of the file with QFile is trivial... this has nothing to do with interpreting the meaning of the content.

    If the file contains HTML, and the images referenced in the image elements are available, then you might be able to display the content in a QTextEdit or QTextBrowser and navigate hyperlinks. If the file contains a PDF/Word/other complex file with embedded links then you need to find another way to display it.

Similar Threads

  1. What is the best c++ forum ?
    By tonnot in forum General Programming
    Replies: 13
    Last Post: 18th December 2017, 03:14
  2. C/C++ forum
    By sumsin in forum General Discussion
    Replies: 1
    Last Post: 3rd May 2007, 12:18

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.