Results 1 to 9 of 9

Thread: QDesktopServices::openUrl - Problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 1 Time in 1 Post

    Question QDesktopServices::openUrl - Problem

    Hi guys,

    I can't get the service "QDesktopServices:penUrl" always work (in every Pcs..)

    I basically use the following code:
    Qt Code:
    1. QString mY_url = QString("https://.....");
    2.  
    3. QUrl urlEncoded = QUrl::fromEncoded(mY_url.toAscii());
    4. QUrl url(urlEncoded.toString());
    5.  
    6. bool isURLopened = QDesktopServices::openUrl ( url );
    To copy to clipboard, switch view to plain text mode 

    Sometimes "isURLopened" is 0 and the page is not open..

    I would like to ask you if there is something wrong with the code above..
    and what I can try to solve the problem.

    many Thanks

    Roby

    PS:
    to be precise mY_url is:

    https://sis-bankpass.ssb.it/bankpass...pc-servizi.com
    Last edited by rmagro; 24th March 2009 at 17:01.

Similar Threads

  1. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 14:38
  2. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 12:48
  3. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  4. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  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.