Questions tagged [qt]
Qt is a cross-platform application development framework widely used for the development of application software that can be run on various software and hardware platforms with little or no change in the underlying codebase, while having the power and speed of native applications. Qt is available with both commercial and open source licenses.
86,285
questions
0
votes
0
answers
46
views
Connecting to MySQL in Qt6
I want to connect to MySQL in Qt6, but the connection is not working. My instructor said that you want to run a diesel car with gasoline and that you need to use a different library instead of ...
0
votes
0
answers
40
views
Custom Qt combobox entries are shifted down when item is preselected
I am working on a custom combobox with remove buttons for each entry. I have left the buttons and code which is not relevant to the problem out. After creating the combobox I want to preselect an ...
0
votes
0
answers
57
views
Unexpected output when inspecting binary QByteArray
I tried to realize how to put different data types to QByteArray to send them through Ethernet. I've seen a lot of topics about using QDataStream but i'm not sure that i'm using it correctly.
So here ...
0
votes
0
answers
42
views
Can I include Qt DLL in a VS Project?
I am currently trying to build a C++ functionality to include in a VS Project written in VB. So I thought of a DLL solution.
Is it possible to build a Qt Application and then compile it into a DLL, ...
0
votes
1
answer
26
views
Here maps Qt app - Failed to read here/nokia map version. - QGeoTileRequestManager: Last error message was: 'Host requires authentication'
When using here maps that I want to use in my qt application, I get this error and the screen does not come up. how can i solve it
My QML Code
import QtQuick 2.15
import QtQuick.Controls 2.15
...
0
votes
1
answer
33
views
How to setup environmental variable from inside qmake .pro file on linux?
I need to setup environmental variable with path from inside the .pro file which of course builds tons of stuff. The path is known. The behavior I expect is:
# my_project.pro
DESTDIR=~/cool/path/to/a/...
-1
votes
0
answers
24
views
Qt-based project errors out
This is what's produced by running make V=1:
Making all in libdbwindow
make[2]: Entering directory '/home/igor/dbhandler/Debug/libdbwindow'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -...
-1
votes
0
answers
73
views
How do I avoid visual artifacts around text when taking a screenshot? [closed]
I'm working on a Qt application where the background is drawn using OpenGL, and the front is rendered by QPainter to a QImage that is then used as an OpenGL texture to be displayed at the top.
On ...
0
votes
0
answers
35
views
How to add new Qt version
I'm doing projects on Qt, using the Qt6 version as the main one, now I need to open and finalize the project on Qt 4.8.7. Tell me where to download and how to add the Qt 4.8.7 version to Qt creator
I ...
0
votes
0
answers
27
views
How to make UI to stay on top of the main UI in Maya
I'm currently writing a script in Python and using Qt to make UI.
The issue that I'm encountering is probably trivial, but the answer available online is not helping.
I want to make the UI window of ...
1
vote
0
answers
44
views
QVBoxLayout::count not returning 0 after cleaning it
I have a QVBoxLayout that is cleared at runtime on some event this way:
void OnSomeEvent()
{
while(!(UiPtr->VLayout->isEmpty()))
{
QLayoutItem* child = UiPtr->VLayout->takeAt(0)...
0
votes
0
answers
45
views
Custom QAbstractItemModel or QAbstractItemView like explorer
I've been experimenting with the model view concept in qt and c++ for some time now. My goal is to present the data in a table like Windows file explorer can do...
There is no problem with tabular ...
0
votes
0
answers
31
views
How are the device names of disks constructed in Windows?
Can I construct the device names manually instead of using some API? For example, I want to use the Physical Drive 2, but the following code fails(hDrive == INVALID_HANDLE_VALUE):
QString ...
0
votes
0
answers
36
views
How to assign a value to the model property of a QML ListView instance in C++
While developing a dynamic layout, I had to implement ListView from qml file as QQuickItem instance in a C++ class, but there was a problem with assigning a value (inherited instance of ...
-1
votes
1
answer
26
views
Set QTableView cell size when using fetch more?
I can set the size of my table rows using the following code:
table = QTableView()
table.setModel(CustomModel(dataFrame))
table.resizeRowsToContents()
My CustomModel.data() function ...