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. how to programatically add a customized widgets to a QFrame

how to programatically add a customized widgets to a QFrame

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 780 Views 2 Watching
  • 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    I have a frame

    I have

    class myTableView: public QTableView {

    }

    class myTreeView:public QTreeView {

    }

    could you please help me adding a these widgets frame_1 and frame_2

    mrjjM 1 Reply Last reply
    0
    • Q Qt Enthusiast

      I have a frame

      I have

      class myTableView: public QTableView {

      }

      class myTreeView:public QTreeView {

      }

      could you please help me adding a these widgets frame_1 and frame_2

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-Enthusiast
      You from Code or in Designer ?

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        from code

        mrjjM 1 Reply Last reply
        0
        • Q Qt Enthusiast

          from code

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-Enthusiast
          Simply add the #includes and use frame_1 as parent ( i assume its a frame already on form)
          myTableView * myT = new myTableView ( frame_1);
          If you wish you can also add a layout and then add
          myT to that instead.

          1 Reply Last reply
          1

          • Login

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