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. [Solved] How to create an matrix of QLineEdit Dynamically
QtWS25 Last Chance

[Solved] How to create an matrix of QLineEdit Dynamically

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.9k 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
    frfm
    wrote on last edited by
    #1

    Hello guys, I am new in the world of QT...
    I am studying its powerfull framework, so now I have this following issue.
    I have one MainWindow which has an classic menutoolbar (File >> new), when the user to click on New option in menutoolbar the new DialogWindow opens. In this new Dialog the user will type the dimensions of matrix. So, according with this dimensions I want to create an new Tab in MainWindow bellow of menutoolbar, in this tab will have an Matrix of QLineEdit. So, I would like to know if anybody could help me with this. How Can I to do this?

    Already, I thanks so much.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should start by creating a widget that will contain and handle your QLineEdit matrix (have a look at QGridLayout).

      Have a QTabWidget as central widget of your QMainWindow.

      Also have a look at the Signals & Slots documentation which are corner stones of Qt's architecture.

      For the dialog/main window interaction, the best source is Qt's documentation and examples. You'll find there everything you need to start (Don't hesitate to take time to go through them, they are a valuable source of inspiration)

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        frfm
        wrote on last edited by
        #3

        Hiiii, firstly sorry for my delay....
        Thanks for your answer, you helped me so much, in fact, you saved me. I did it.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          If everything is working now, don't forget to update the thread title prepending [solved] so other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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