Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt SDI app?
Forum Updated to NodeBB v4.3 + New Features

Qt SDI app?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 113 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Flaviu 0
    wrote last edited by
    #1

    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.

    1 Reply Last reply
    0
    • I Offline
      I Offline
      IgKh
      wrote last edited by
      #3

      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)

      1 Reply Last reply
      2
      • JonBJ Offline
        JonBJ Offline
        JonB
        wrote last edited by JonB
        #2

        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.

        1 Reply Last reply
        1
        • I Offline
          I Offline
          IgKh
          wrote last edited by
          #3

          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)

          1 Reply Last reply
          2
          • F Offline
            F Offline
            Flaviu 0
            wrote last edited by
            #4

            Excellent! I will start to try what you sent me! Thank you all!

            1 Reply Last reply
            0
            • F Flaviu 0 has marked this topic as solved

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved