Category : qt5

maybe my qustion is asked many times but i didn’t find a answer working 100% i compile qt 5.14.2 many times but qmysql didn’t working i installed openssl 32 and 64 and source code configure -static -debug-and-release -platform win32-g++ -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -no-angle -sql-sqlite -openssl -I «c:QtToolsOpenSSLWin_x86include» -L «c:QtToolsOpenSSLWin_x86» -opensource -confirm-license ..

Read more

I have a TreeView and and the model it is using is a QSortFilterProxyModel and the source model of the QSortFilterProxyModel is a QStandardItemModel. When the Treeview is using QStandardItemModel directly I do not get extra rows but filtering does not work. When I use the filter I get a bunch of empty rows added ..

Read more

I’m trying to use the QListWidget as a console to easily display things going on with my program. This is how I implemented adding a line to the list: QString timestamp = QDateTime::currentDateTime().toString("yyyy-MM-dd HH:mm:ss"); QString string = timestamp + " : " + msg; ui.lv_Console->addItem(string); ui.lv_Console->scrollToBottom(); But I noticed that with multiple threads and other ..

Read more

I am using QtCreator to create a Qt Application in C++. I know CSS and making themes for elements in my applications isn’t too hard, but is there a way to make a file and apply it? I’ve looked through the Qt Docs but I can’t seem to find anything about such a thing. Currently, ..

Read more

as i am still new to QT i need to ask for a hint why my code does not read my specified keys from my enum. The code itself compiles fine and the program runs without any runtime errors. header file with the enum: #include class Planet: public QObject { public: enum PlanetTypes { Barren,Gas,Ice,Lava,Oceanic,Plasma,Storm,Temperate ..

Read more

I am trying to create a Snell’s Law calculator similar to the one here Snell’s Law. I currently have an issue with updating the state. I am not sure how to keep track of the state. I think my issues lies with my update() because everything gets updated with the same value. The SnellsLawCalculator is ..

Read more

I want to pass the value from the "ui.a" to my controller via slots and signals. Currently my connection does not work and I am not sure where I am going wrong. Also, is it good practice to access the UI object via the calcController using the following function accessUI()? //This is Calc.h class Calc ..

Read more