Relative Content

Tag Archive for c++qt

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.

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.