PDA

View Full Version : QUrl broke?



bwindorski
23rd January 2009, 10:03
Is the QUrl or QDesktopServices broke in qt 4.4.3? I can not get either to do anything for me:eek:

code:

void About::on_pushButton_clicked() {
QDesktopServices::openUrl (QUrl( "http://www.google.com/") );
}

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:

connect ( lblEmailLink, SIGNAL ( linkActivated ( const QString & ) ), this, SLOT ( linkActivated ( const QString & ) ) );

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 :mad:

wysota
26th January 2009, 08:09
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.

bwindorski
26th January 2009, 19:17
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-programming-2/t-add-link-that-open-web-browser-on-unix-3890.html

wysota
26th January 2009, 20:16
Please don't start (or continue) multiple threads about the same subject.