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. Qt, a whole new programming language?
Forum Updated to NodeBB v4.3 + New Features

Qt, a whole new programming language?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k Views 1 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.
  • Y Offline
    Y Offline
    youngroger
    wrote on last edited by
    #1

    Lately I've been making some simple C++ batch programs, but I'm intending to use Qt to start off with GUI progrmaming. First thing I did was buying some reading material, and after I opened those books I questioned myself the following: Are these QThreads, QSqlDatabase, QFileInfo, etcetera, necessary to use or can I just use the C++ implementation itself? Can I just use the MySQL C++ connector, or do I have to use the Qt-way of accessing databases?

    I just want to use Qt for creating widgets, is this possible aswell?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      N3Roaster
      wrote on last edited by
      #2

      It certainly is possible to go around Qt in this way and only use it for widgets. The real question here is why you want to. To take your database example, you can use MySQL without going through anything in QtSql, but then if you want to later adapt your code to another database such as SQLite or PostgreSQL you'll have more work ahead of you. Even if you never do that, if you want to use any of the Qt widget classes that are designed to work with QtSql you'll be stuck writing your own implementations instead of being able to use what's already there. With your other examples you're more likely to accidentally tie yourself to a single operating system than if you just used the classes Qt provides and again you'll probably have to re-implement a good chunk of what Qt already provides once you're doing anything non-trivial. If you're going to deny yourself these abstractions it becomes questionable why you'd want to use Qt at all.

      1 Reply Last reply
      0

      • Login

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