Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. beginner
    Log in to post

    • UNSOLVED Creating a multiplayer game, don't know where to start, looking for advice
      Game Development • beginner game newbie ludogame multiplayer • • MongKong  

      4
      0
      Votes
      4
      Posts
      561
      Views

      @mrjj Thank you for the link and regarding the multiplayer my teacher said that i can do either over the internet or LAN , i believe LAN is a much simplier thing to work with so i'd probably go with that if there are any stuff regarding this topic, for my graduation project it's required for game to be played by ( for example 4 ) players, but each player has to play the game on their own PC. @jksh ye i wanted to implement that into my game and of course like i said player vs the pc, but my professor said that i should put a multiplayer option in there aswell if i want to get a better grade.
    • UNSOLVED Fresh app development
      General and Desktop • camera pyqt beginner ui design raspberrypi • • Jarenward  

      2
      0
      Votes
      2
      Posts
      271
      Views

      @Jarenward said in Fresh app development: which Qt is for me? There is only one Qt :-) PyQt is a Python binding for Qt and still requires Qt libraries (binaries). So, even if you use PyQt you will need to have Qt libraries which you are using. If I understood you correctly you need your UI on a computer (not Pi), right? This part is simple - just install the latest stable Qt version an start coding :-) For the other part you can either directly develop on Pi (using Raspbian you can easily install Qt with apt) or you have to cross compile Qt to develop on your PC. You don't have to cross compile everything, just what you need. See https://wiki.qt.io/Raspberry_Pi_Beginners_Guide
    • SOLVED Visual Studio Qt 5.11.2 SQL Server Express 2017 Driver
      General and Desktop • c++ qt beginner odbc sql server • • Ovidiu_GCO  

      4
      0
      Votes
      4
      Posts
      1011
      Views

      @Ovidiu_GCO {SQL Server Native Client 17.0 }; What is with the blank in front of "}"
    • SOLVED Modbus problem, beginner
      General and Desktop • problem serial beginner modbus new • • GhostWolf  

      10
      0
      Votes
      10
      Posts
      3210
      Views

      Thanks for the answers, I found the connection problem. I added the part: void MainWindow::on_connectType_currentIndexChanged(int index) { if (modbusDevice) { modbusDevice->disconnectDevice(); delete modbusDevice; modbusDevice = nullptr; } auto type = static_cast<ModbusConnection> (index); if (type == Serial) { modbusDevice = new QModbusRtuSerialMaster(this); } else if (type == Tcp) { modbusDevice = new QModbusTcpClient(this); if (ui->portEdit->text().isEmpty()) ui->portEdit->setText(QLatin1Literal("127.0.0.1:502")); } connect(modbusDevice, &QModbusClient::errorOccurred, [this](QModbusDevice::Error) { statusBar()->showMessage(modbusDevice->errorString(), 5000); }); if (!modbusDevice) { ui->connectButton->setDisabled(true); if (type == Serial) statusBar()->showMessage(tr("Could not create Modbus master."), 5000); else statusBar()->showMessage(tr("Could not create Modbus client."), 5000); } else { connect(modbusDevice, &QModbusClient::stateChanged, this, &MainWindow::onStateChanged); } } And now I can make a connection. Now I have to test it on the device, but i can't access it for a while, to be continued
    • SOLVED Designing a "general purpose" QNetworkAccessManager interface
      General and Desktop • signals & slots help networking beginner • • voiid  

      8
      0
      Votes
      8
      Posts
      1845
      Views

      @VRonin Excellent! This is exactly what I was looking for! Thank you!
    • UNSOLVED Lost my QApplication
      General and Desktop • qapplication beginner header • • astroannie  

      12
      0
      Votes
      12
      Posts
      2389
      Views

      No worries for that :) Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)
    • UNSOLVED End goal Project
      General and Desktop • beginner table website • • daose  

      1
      0
      Votes
      1
      Posts
      526
      Views

      No one has replied

    • UNSOLVED Qt for Beginners is not for Qt 5.5!
      General and Desktop • 5.5 beginner • • kahlenberg  

      3
      0
      Votes
      3
      Posts
      876
      Views

      @JKSH said in Qt for Beginners is not for Qt 5.5!: http://doc.qt.io/qt-5/gettingstartedqt.html FYI This link: https://doc.qt.io/qt-5/gettingstartedqt.html now results in a 404 error. Note: only a slight change: drop the "qt" just before the .html Try a new link: https://doc.qt.io/qt-5/gettingstarted.html
    • SOLVED Passing arguments to QObject::connect SLOT function
      General and Desktop • beginner • • Nixxer  

      8
      0
      Votes
      8
      Posts
      4735
      Views

      Now i have better understood the dynamics of connect. Thanks for your patience.
    • QListWidget remove duplicates
      General and Desktop • qt5 qlistwidget beginner duplicate • • Votato  

      4
      0
      Votes
      4
      Posts
      5302
      Views

      Then it's just a matter of removing from the list items that are already added. Something like this: //get the list from somewhere QStringList fileNames = ... //remove the temp item you mentioned fileNames.removeOne(temp); //remove the items already in the widget int numItems = listWidget->count(); for(int i = 0; i < numItems; ++i) fileNames.removeOne(listWidget->item(i)->text()); //now that the list is "clean" all there is left to do is add the new items listWidget->addItems(fileNames);
    • Starting with Qt 5.5
      The Lounge • beginner • • ChajusSaib  

      12
      0
      Votes
      12
      Posts
      3139
      Views

      Welcome to the world of Qt :) Happy coding!
    • Changing the property's of widgets from another window [SOLVED]
      General and Desktop • gui connect beginner • • Bart  

      9
      0
      Votes
      9
      Posts
      3782
      Views

      @Chris-Kawa Thank you very much!
    • [SOLVED] (BEGINNER) How to print barcodes
      General and Desktop • c++ font beginner string newbie print conversion barcode starter code39 • • A7Victor  

      3
      0
      Votes
      3
      Posts
      2252
      Views

      @mcosta Hi, I'll certainly take a look at it. So I guess it's not only changing the font xD Thank you.
    • Problem with LocalStorage
      QML and Qt Quick • database beginner localstorage • • witusx93  

      1
      0
      Votes
      1
      Posts
      516
      Views

      No one has replied

    • Few Questions from beginner
      Qt in Education • qml listview beginner databa • • witusx93  

      5
      0
      Votes
      5
      Posts
      1395
      Views

      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
    • [SOLVED] Reuse a QDirIterator
      General and Desktop • c++ beginner • • Hazzl  

      8
      0
      Votes
      8
      Posts
      2627
      Views

      Thanks a lot for your pointers (no pun intended :-)
    • [Help to setup a user interface]
      General and Desktop • user interface beginner • • Funderskov  

      4
      0
      Votes
      4
      Posts
      1368
      Views

      If you want to do it widget style you might be interested by this Otherwise, are you going to use QML ?