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. Web Server with QML
QtWS25 Last Chance

Web Server with QML

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.1k Views
  • 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.
  • P Offline
    P Offline
    panti93
    wrote on last edited by
    #1

    Hi. I am building an application and I want to connect to a login page from a website. I created the login page on QML but I want to connect that page on a website. The application is like the site travian.com, I want to build an app for them because I really like it. I made the login page, but how to connect the username and password field to their database? Thank you!

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Did you check web view component ? Also look at how travian publishes the web service for login.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      3
      • P Offline
        P Offline
        panti93
        wrote on last edited by
        #3

        Thank you for your response, I will check now. I have another problem now. I tried to connect to MySQL from qt c++ on ubuntu 14.04 and I have this errors :
        QSqlDatabase: QMYSQL driver not loaded

        QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7

        QSqlQuery::exec: database not open.
        I searched everywhere but I couldn't find the problem. Some help would be really appreciate. Thank you!

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

          Hi and welcome to devnet,

          The MySQL problem has been discussed many times on this forum. Do you have the MySql client libraries installed on your computer ? If so check the version. It's likely the 18 while the plugins is linked to the version 16. So you'll have to build the plugin yourself from sources (only the plugin not the full Qt)

          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
          1

          • Login

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