Results 1 to 3 of 3

Thread: QDesktopServices problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  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

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.