Skip to content

Qt in Education

Are you a student or a teacher using Qt Educational Licenses? Here you can discuss about the educational use of Qt, share your learning projects, and network with others.

257 Topics 1.2k Posts
  • Programing with QT Training

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QML Book

    5
    0 Votes
    5 Posts
    5k Views
    C

    Your question duplicates this
    => https://forum.qt.io/topic/3276/good-tutorials-books-for-qml/

  • html editor

    5
    0 Votes
    5 Posts
    2k Views
    ravasR

    @tekojo Thank you. I also found a Qt5 port on github: https://github.com/anak10thn/graphics-dojo-qt5

  • Qt for begginers :10 subclassing Qt widget .

    10
    1 Votes
    10 Posts
    4k Views
    Chris KawaC

    Great. You only need to run qmake when you change the contents of the project file.

  • Any news about a Qt 5 book for beginners?

    9
    1 Votes
    9 Posts
    4k Views
    V

    @Pro-Grammer I've been learning Qt programming for a while now. The best source of information is (in my opinion) the official documentation you already mentioned (C++ skills are required of course). Qt Assistant is a good tool for browsing the documentation. You can also use the help section of Qt Creator. Additionally there are a lot of useful examples available (you already picked one of them).

    [EDIT: Spam link removed. --JKSH]

  • 0 Votes
    3 Posts
    1k Views
    Season02S

    @mcosta Thank you.I have many mistake in my code,like what you said.

  • 0 Votes
    5 Posts
    9k Views
    ?

    If you want to become a really good programmer, you have to acquire an incredible amount of knowledge. Once you can code well, it doesn't make a difference to you what OS you are using. Therefore, there's a contradiction between being a great professional and only knowing how to program for Linux.
    If you want to become a pro, go ahead and get a master's degree in Computer Science. If you don't want to do that, read books. Tons of them.
    Qt is nice for playing around with typical problems and gaining experience, but it won't help you to understand how the low-level (hardware) or even C++ work. You could buy a C++ book, complete ones are over a thousand pages thick. This is how complicated just C++ is. But when programming C or C++ one should be aware of the hardware, too. Endianness, Caches, Virtual Memory and all this stuff is crucial for efficient programming in lower level languages.
    Then, you need to master Software Design. This is the art of bringing your ideas into a shape that you can understand, REALLY understand. People tend to think in chaotic ways (that's how human brains are built) and that's not enough for building a complex program. There are great resources out there for design patterns, and many of them are fun. For example, have a look at https://sourcemaking.com/
    One doesn't become a good programmer within three years. It's incredibly tough and evolves super-fast. I am myself in the middle of my CS studies and I get to feel every day how amazingly complex this matter is.
    Good luck!

  • How can I operate ui widget in other CPP file?

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    Season02S

    @mcosta Thanks a lot,very thank you,I`m studing...

  • This topic is deleted!

    Locked
    1
    0 Votes
    1 Posts
    542 Views
    No one has replied
  • 1 Votes
    3 Posts
    2k Views
    S

    I have to give an up vote for these courses. Well done, informative both for experienced and novice users. Highly recommended!

  • Crossplatform app development tools

    Locked
    1
    0 Votes
    1 Posts
    707 Views
    No one has replied
  • Need Help with QList !

    7
    0 Votes
    7 Posts
    3k Views
    Chris KawaC

    @Afterwork said:

    I recreate them every time. Are there better way ?

    If they change then there's no way around it but if they're the same every frame then it's a waste of time. Generate the list once, store it as a class member and just expose them by reference e.g.

    //split that to .h and .cpp of course class GameWidget : public QWidget { Q_OBJECT public: GameWidget(QWidget* parent = nullptr) : QWidget(parent) { generateMyListOfObjects(); } const QVector<Object>& objects() const { return objects_; } private: void generateMyListOfObjects() { //fill the objects vector here } QVector<Object> objects_; };

    And how i can connect the slot of differents objects to built-in timer of QWidget ?

    You don't. As I said - reimplement the timerEvent method. It will be called every time the timer times out. You can call some methods directly in it or emit a custom signal if you'd like.

  • Few Questions from beginner

    5
    0 Votes
    5 Posts
    2k Views
    P

    Since you talked about QML I will assume that you work with embedded devices so SQLite is probably the database for you.
    Here is an example of how to connect to a database, hope this helps:

    QSqlDatabase db = QSqlDatabase::addDatabase("SQLITE"); db.setDatabaseName("path/to/database.db"); db.open(); //This will create the database if it doesent exist

    Make sure to include

    #include <QSqlDatabase>

    Also add

    QT += sql

    To your project file

  • 0 Votes
    10 Posts
    4k Views
    ?

    My point is simply that blind adherence a principle or method can actually be worse than fully understanding the needs and goals of what you are trying to do.

    Amen.

  • 0 Votes
    4 Posts
    1k Views
    M

    You're welcome

    Happy Programming

  • Absolute Beginner

    9
    0 Votes
    9 Posts
    4k Views
    SGaistS

    I'd say you have to ensure that you also deploy the ui file properly so that it can be found by your application

  • Help Kids Learn Coding

    1
    0 Votes
    1 Posts
    924 Views
    No one has replied
  • Matrix Algebra with <QVector<QVector<>>

    13
    0 Votes
    13 Posts
    16k Views
    D

    For 2 dimensions, you can use 1 dimension vector . For exemple, a matrice 320x200

    QVector<int> datas; int value(int x, int y) { // Check out of range Q_ASSERT(x*y < 320*200) return 320*y + x; }
  • 0 Votes
    3 Posts
    1k Views
    p3c0P

    Hi,

    The link you posted doesnot work.

  • QT Training Classes?

    6
    0 Votes
    6 Posts
    3k Views
    R

    You can also try learning from home. My "latest course ":http://bit.ly/qtquickcpp in the three part series on Qt just went live on "Pluralsight":http://www.pluralsight.com. I realize you probably have long since become an expert but if anyone else finds their way here, send me an email through this forum and I'll get you a VIP pass for unlimited viewing for a week on Pluralsight.