Understanding How to Create Qt GUI Applications

Asked 2 years ago, Updated 2 years ago, 127 views

Could you tell me how to create a GUI application using QtCreator?

I would like to use the Qt GUI application project to create Notepad in Qt.
I am troubled that there is no project with that name in the list of new projects.
I think I need to include <QTextEdit> to create a notepad.
I'm worried that I can't include any projects.

Is there something wrong with the installation?
Or has the current Qtcreator version changed to a different project name?

I look forward to hearing from you.

c++ qt

2022-09-30 17:10

2 Answers

"If you add ""widgets"" to the variable ""QT"" in the .pro file, you will be able to include <QTextEdit>."

QT+=core gui
GreaterThan(QT_MAJOR_VERSION,4): QT+=widgets


2022-09-30 17:10

If you're asking what's missing, you should tell them what you installed first.

For the time being, I was able to select the Qt Widgets Application project with Qt 5.7.1+Qt Creator 4.2.0, and I was able to use QTextEdit.


2022-09-30 17:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.