Download error while installing Qt in my desktop
I am on windows 10 and I am trying to install Qt in my desktop but the error in the image appears when the install reaches 2%. Download error
cpp:-1: error: C1041: cannot open program database; untitled-build-desktop-debugvc120.pdb’
All the answers available for this problem are solutions for Visual studio. I am facing this problem in QT. I run a sample example but this error pops up.Could somebody help.
Ctrl+Left mouse click event capture Qt
How can one get Ctrl+Left mouse click
event in Qt widget. I am able to get key event from QObject::keyPressEvent()
and mouse click from QObject::mousePressEvent()
. But I need to capture both in the same function. Can someone give some pointer to right direction. Thanks.
QtMsBuild -> Qt::BuildLock
We have a fairly large solution (>200 projects) and recently switched to VS2019. We are using Qt 5.14 with Qt Visual Studio Tools 2.7.1.18 and QtMsBuild. After we started using VS 2019 we get the following warning multiple times when we build the solution:
Compile error in QT file using c++
I have class Content in my project as follows:
Using qvector in q_property and accesing each data
I would like to update weekKm and weekTime to update automatically when I change any value in m_weekKmAndTime, but I am struggling with that. I would like to acces it just like DbModel.weekKm(0)
and have value, not struggle with vars in qml and trying to get value there.
Why doesn’t changing the parent object’s properties in Qt affect the same-named properties of its child objects?
QWidget *widget; QLineEdit *text; widget->addWidget(text); widget->setEnabled(false); qDebug()<<widget->isEnabled(); // false qDebug()<<text->isEnabled(); //true In a QWidget, there are multiple child widgets, including QLabel and QTextEdit. Now I want to change the style in QSS based on the QWidget’s enabled value. For example: QTextEdit:enabled { background-color: lime; } QTextEdit:disabled { background-color: red; } However, this approach doesn’t seem […]
Painting arc borders on a QWidget
How to create a QWidget that looks the same as the image below?
How to customize the space between specific lines on a QTextDocument?
I’m trying to set a custom spacing between just the first line and the second and all other lines should have the same line spacing.
Does embedding Qt resources affect RAM consumption?
I’m working on a Qt application where I’m embedding all resources by default into the binariy files using the Qt Resource System. I understand that this approach can simplify distribution by bundling resources with the executable. However, I’m concerned about its impact on RAM consumption at runtime.