Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Web Server with QML

    General and Desktop
    3
    4
    1906
    Loading More Posts
    • 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
      panti93 last edited by

      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 Reply Quote 0
      • dheerendra
        dheerendra Qt Champions 2022 last edited by

        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 Reply Quote 3
        • P
          panti93 last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 1
            • First post
              Last post