Qt SDI app?
-
Is there any tutorial or model how to create a Single Document Interface, like SDI in MFC app?
I want to put in the view just a simple text file, and I did not find any tutorial about this ...When I said SDI app, I meant including menu bar, status bar, etc.
-
This example should be useful: https://doc.qt.io/qt-6/qtdoc-demos-documentviewer-plugins-txtviewer-example.html
(There used to be a lot more, it is a shame that so many examples were purged from the Qt 6 documentation)
-
A QMainWindow offers menu bar, status bar etc. and you could put a QPlainTextEdit as its central widget to view/edit a text file.
Getting Started Programming with Qt Widgets
In this topic, we teach basic Qt knowledge by implementing a simple Notepad application using C++ and the Qt Widgets module. The application is a small text editor which allows you to create a text file, save it, print it, or reopen and edit it again. You can also set the font to be used.
-
This example should be useful: https://doc.qt.io/qt-6/qtdoc-demos-documentviewer-plugins-txtviewer-example.html
(There used to be a lot more, it is a shame that so many examples were purged from the Qt 6 documentation)
-
F Flaviu 0 has marked this topic as solved