Cant open a file in QT c++
I’m currently trying to open a file in the same directory as my project
QT Creator design tab is greyed out
I don’t know if this is the expected behavior. I created a new QT Quick application project. It shows up a main.qml and main.cpp file. The problem is the design tab is greyed out.
How to know a value of offset in QPlainTextEdit
In QPlainTextEdit
first typed symbol is drawn with a small offset, literally there a few pixels. But how to know the value of this offset in the code? Look at the screenshot, distance between red line and selected character is what I need to know.
“Qt requires a C++17 compiler, and a suitable value for __cplusplus. On MSVC, you must pass the /Zc:__cplusplus option to the compiler.”
I am using qt 6.5.0 as a third party library. The project was building fine until I was using qt5 , on trying to build with qt6.5.0, I get the following error:
Make all widgets in a QToolBar/QHBoxLayout have a same width
For example suppose the following tool bar:
UI in QT is not outputting anything, not even console outputs
I have a basic QT Creator application with a main page called MyBroker, and a button that switches it to the Signin Page. The main page outputs and functions correctly, but the Signin Page does not. The UI itself functions fine but nothing is outputted, including log statements. I have tried revisiting everything ChatGPT and I could think of but nothing seems to work.
Smoothen text for user defined theme
I have a graph rendered with Q3DBars (Qt 6.6), and I have defined a dark theme forthe graph using Q3DThemes. The prblem is, when I set the graph theme to a Qt Built-in theme (for example Q3DTheme::ThemeArmyBlue) the texts on the graph are perfectly clear and readable, but when I set the theme to the one I have defined, the texts look jagged, pixlish and not pleasant to read from the same angle and distance as before. Is there a way to smoothen the text upon the graph rendering, by for example setting a specific rendering hint? I really need a good text quality for my graph.
LNK1104 error in Qt development environment
**Prerequisites: **I am using the internal development environment provided by my client, which is based on Qt Creator, let’s call it “CNC” in this problem.
In this project I compiled a library called DDS into a library file called DDS.lib. After successfully adding DDS.lib to my project, the following error message occurs when building the project: “:-1: error: LNK1104: could not open file”. ddservicesd.lib“”. After some troubleshooting, I found that this “ddservicesd.lib” file exists in the DDS library as ddservices.h and ddservices.cpp.
QT c++ signal emit when a QWidget is destroyed (closed)
I’m trying to handle the event of when my ChartManager (QWidget) is destroyed (i.e. when it’s closed). But the signal isn’t emitted at all (i dont get the debug output)
QT — How do I use Layout classes?
So, I have a QT project with an implemented subclass of QWidget class, which I show on the start and do nothing more. Literally: