Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Set query string to URL
Forum Updated to NodeBB v4.3 + New Features

Set query string to URL

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 872 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    user4592357
    wrote on last edited by A Former User
    #1

    i need to open a page on wikipedia based on the provided string. this doesn't work:

    QUrl url { "https://en.wikipedia.org/wiki/" };
    url.setQuery(query);
    QDesktopServices::openUrl(url);
    

    please help

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mostefa
      wrote on last edited by
      #2

      Hi @user4592357

      What is your exact problem?

      U 1 Reply Last reply
      0
      • M mostefa

        Hi @user4592357

        What is your exact problem?

        U Offline
        U Offline
        user4592357
        wrote on last edited by user4592357
        #3

        @mostefa hi

        the problem is that setting the query isn't applied, i.e. the link opens wikipedia main page

        p.s. there IS a wikipedia page with query string

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Can you show the query ?
          Can you show the url once you set the query ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved