Results 1 to 3 of 3

Thread: QDesktopServices problem

  1. #1
    Join Date
    Nov 2006
    Location
    gurgaon
    Posts
    49
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X

    Question QDesktopServices problem

    hi all
    i am using Qt4.1.4
    i am facing very small problem
    i wanna open an external page
    i had created code like this

    Qt Code:
    1. void MainForm::openHelp()
    2. {
    3.  
    4. QDesktopServices::openUrl(QUrl("http://www.google.com/"));
    5. }
    To copy to clipboard, switch view to plain text mode 

    but its giving some errors

    MainForm.cpp:21:27: error: QDesktopService: No such file or directory
    MainForm.cpp: In member function 'void MainForm::openHelp()':
    MainForm.cpp:81: error: 'QDesktopService' has not been declared
    MainForm.cpp:81: error: 'openUrl' was not declared in this scope

    Build failed (3 errors, 1 warning)

    is there any alternative just like as QDesktopServices in QT4.1.4 otherwise tell how to open external link on QT4.1.4

    plz do tell if as soon as possible ....
    Last edited by wysota; 21st December 2006 at 13:57. Reason: missing [code] tags
    thanks & regards
    --------------------
    jyoti

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QDesktopServices problem

    QDesktopServices class was introduced in Qt 4.2. There is no such class yet in 4.1.4.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDesktopServices problem

    Quote Originally Posted by jyoti View Post
    is there any alternative just like as QDesktopServices in QT4.1.4 otherwise tell how to open external link on QT4.1.4
    http://qds.berlios.de/ (I think it's for Qt3, but it'll probably also work with Qt4 - maybe just with minor adjustments).

    BTW. We always answer questions as soon as possible.

Similar Threads

  1. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  2. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.