QDesktopServices::openUrl opens always 2 web pages
I have an app ([URL="http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/currencyconverter/0.5-1"]Currency Converter[/URL]) that uses two different methods to open outside URL links:
1. A button in the Menu bar, that when clicked does:
[CODE]void MainWindow::on_actionWebLink_triggered()
{
QDesktopServices::openUrl(QUrl("http://www.weblink.com"));
}[/CODE]
2. [B]QTextBrowser [/B]which has [B]opneExternalLinks [/B]set as [I]true[/I]
Both of the method give the same result: It opens the MicroB Web links page and the actual selected link. If these pages are not closed and one or two more URL links are opened, the web pages start to crash.
Am I doing something wrong? Is this a known issue? Has anyone anyone else noticed this?
I'm using the default Qt 4.5. [URL="https://garage.maemo.org/frs/?group_id=1244"]Here are the source files[/URL].
Cheers! :)
Re: QDesktopServices::openUrl opens always 2 web pages
Do you mean, if user selects "Donate" from the application menu multiple times browser crashes? Or does your application crash?
Re: QDesktopServices::openUrl opens always 2 web pages
Are you talking about browser hangs if 3-4 instances are open?
[IMG]http://img121.imageshack.us/img121/4046/paypalit.png[/IMG]
This is browser issue, but Qt 4.6 uses different approach on opening browser leading only to one window per open.
Re: QDesktopServices::openUrl opens always 2 web pages
[QUOTE=divanov;696740]Do you mean, if user selects "Donate" from the application menu multiple times browser crashes? Or does your application crash?[/QUOTE]
The browser crashes.
Re: QDesktopServices::openUrl opens always 2 web pages
[QUOTE=divanov;696774]Are you talking about browser hangs if 3-4 instances are open?
This is browser issue, but Qt 4.6 uses different approach on opening browser leading only to one window per open.[/QUOTE]
Yes, this is exactly what I'm talking about.
When will Qt 4.6 out of Beta in Maemo? And when will it be available for MADDE?
Re: QDesktopServices::openUrl opens always 2 web pages
[QUOTE=Sasler;697143]Yes, this is exactly what I'm talking about.
When will Qt 4.6 out of Beta in Maemo? And when will it be available for MADDE?[/QUOTE]
One day :) But I'm using it for a while and it seems to be quite stable already. I don't know how it goes with MADDE, but the latter is in technical preview state at the moment.