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 Can I put a widget inside a Frame or a Container

How Can I put a widget inside a Frame or a Container

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 146 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.
  • B Offline
    B Offline
    bhomaidan
    wrote on last edited by
    #1

    My Colleague has written This Piece of code,and I'm supposed to build User Interface to contain his part and add some buttons on that, how can I put his Widget inside a frame to keep a space to my buttons ?

    QLayout *map = layout();
      map->addWidget(m_mapView);
      this->setLayout(map);
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What is his widget ?
      What do you want to do with it ?
      What should your UI look like ?

      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