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 Designer adds QGridLayout in generated XML but not visible in Object Inspector
Forum Updated to NodeBB v4.3 + New Features

QT Designer adds QGridLayout in generated XML but not visible in Object Inspector

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

    I have a .ui file which is part of a github project. (ie I didn't design it.)
    QT Creator/Designer is instantiating a QGridLayout in the xml file, but that component is not visible in the form previewer nor the Object Inspector. Here is a snippet of code from my .ui form XML file:

    ...
     <layout class="QGridLayout" name="gridLayout">
     <property name=...>  (Several related properties not relevant)
          <item row="0" column="0">
                <widget class="qfi_NAV" name="graphicsNAV">
             ...
                <property xxx...> (lots of properties)
            ...
                </widget>
          </item>
      </layout>
    
    

    However, the only three items shown in the form designer's Object Inspector are:

    myWidget  |  QWidget
        myFrame  |  QFrame
            graphicsNAV  |  qfi_Nav   (my own subclass of QGraphicsView)
    
    

    Any idea why I don't see the QGridLayout which gets autogenerated from this .ui form? Why doesn't it appear on Object Inspector in QT Design mode? Where is this QGridLayout coming from and how do I control its properties if I can't see it?

    Thanks.

    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