Results 1 to 4 of 4

Thread: QUrl broke?

  1. #1
    Join Date
    Jan 2009
    Posts
    6
    Thanks
    1

    Default QUrl broke?

    Is the QUrl or QDesktopServices broke in qt 4.4.3? I can not get either to do anything for me

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

    does nothing...I tryed to use a label as a link but no luck there either...

    compiles fine but nothing with the link qlable I dont think the signals being emited...not sure

    code:
    Qt Code:
    1. connect ( lblEmailLink, SIGNAL ( linkActivated ( const QString & ) ), this, SLOT ( linkActivated ( const QString & ) ) );
    To copy to clipboard, switch view to plain text mode 

    again nothing. Its not connecting to (this) linkActivated....I google around a little but found no answers I removed the QString from my local linkActivated nothing. Even renamed it...nothing... both cases there was no errors compiled fine
    Last edited by jpn; 23rd January 2009 at 10:33. Reason: missing [code] tags

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

    Default Re: QUrl broke?

    What platform do you use? BTW. You will not get compilation errors when passing wrong signatures to signals or slots as these are evaluated during runtime.

  3. #3
    Join Date
    Jan 2009
    Posts
    6
    Thanks
    1

    Default Re: QUrl broke?

    Platform is Linux.

    "You will not get compilation errors when passing wrong signatures to signals or slots" - Right I put a break in the linkActivated() slot and it is never called.

    It works when I preview the form but not while running the app.

    However I do get some debug info after shutting down the app

    GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Failed to get connection to session: '=' character not found or has no value following it)

    http://www.qtcentre.org/forum/f-qt-p...unix-3890.html

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

    Default Re: QUrl broke?

    Please don't start (or continue) multiple threads about the same subject.

Similar Threads

  1. QUrl: file in the current dir
    By lirq in forum Qt Programming
    Replies: 5
    Last Post: 6th January 2009, 11:52
  2. Problem with qurl and fromlocalfile
    By zorro68 in forum Qt Programming
    Replies: 1
    Last Post: 19th June 2008, 19:44
  3. QUrl parsing?
    By gfunk in forum Qt Programming
    Replies: 2
    Last Post: 17th January 2008, 10:51

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.