×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    QDesktopServices::openUrl opens always 2 web pages

    I have an app (Currency Converter) 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"));
    }
    2. QTextBrowser which has opneExternalLinks set as true

    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. Here are the source files.

    Cheers!

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    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?

  3. #3
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QDesktopServices::openUrl opens always 2 web pages

    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.

  4. #4
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Re: QDesktopServices::openUrl opens always 2 web pages

    Quote Originally Posted by divanov View Post
    Do you mean, if user selects "Donate" from the application menu multiple times browser crashes? Or does your application crash?
    The browser crashes.

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Re: QDesktopServices::openUrl opens always 2 web pages

    Quote Originally Posted by divanov View Post
    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.
    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?

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QDesktopServices::openUrl opens always 2 web pages

    Quote Originally Posted by Sasler View Post
    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?
    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.

Similar Threads

  1. Replies: 0
    Last Post: 1970-01-01, 02:00
  2. Replies: 0
    Last Post: 1970-01-01, 02:00
  3. Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×