Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [QtDesigner] Can't set layout for Widget under a QGridLayout
Forum Updated to NodeBB v4.3 + New Features

[QtDesigner] Can't set layout for Widget under a QGridLayout

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qtdesignerqwidgetlayoutlayout issues
3 Posts 2 Posters 1.8k 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.
  • A Offline
    A Offline
    Aramir
    wrote on 28 Aug 2021, 16:31 last edited by
    #1

    Hello,

    It's my first time using QtDesigner, and I can't figure out why I have this "red circle" icon around my QcmEntryGuess Widget. I figured out those are supposed to be indicating "those widget do not have a layout" => no responsive design

    But unlike the vanilla QWidgets, I cannot set their layout from qtdesigner. I don't understand what am I doing wrong here ?
    Is the lack of layout responsible for those QcmEntryGuess to stack in a single column too ?

    1270438a-0a97-4fe7-b5f7-9ec83b7a84b2-image.png

    J 1 Reply Last reply 28 Aug 2021, 17:40
    0
    • A Aramir
      28 Aug 2021, 16:31

      Hello,

      It's my first time using QtDesigner, and I can't figure out why I have this "red circle" icon around my QcmEntryGuess Widget. I figured out those are supposed to be indicating "those widget do not have a layout" => no responsive design

      But unlike the vanilla QWidgets, I cannot set their layout from qtdesigner. I don't understand what am I doing wrong here ?
      Is the lack of layout responsible for those QcmEntryGuess to stack in a single column too ?

      1270438a-0a97-4fe7-b5f7-9ec83b7a84b2-image.png

      J Online
      J Online
      JonB
      wrote on 28 Aug 2021, 17:40 last edited by JonB
      #2

      @Aramir
      I don't know anything about QcmEntryGuess. Usually in Qt Designer you cannot set the layout on a widget until you have dragged a child widget onto it. Irritating but that's how it is. You can even delete the child widget after setting the parent's layout and then it will retain it.

      1 Reply Last reply
      3
      • A Offline
        A Offline
        Aramir
        wrote on 28 Aug 2021, 18:00 last edited by
        #3

        Thank you for the answer.
        Setting a child did enable the layout selection. I don't understand the logic behind that at all but ok.

        QcmEntryGuess are QWidget I've created on the side. They're only a QLabel nested in two layout 12d3bbf3-2642-4ef6-90a4-71ae4535d2d8-image.png

        Althought my QGridLayout is still only consisted of one row. I'm probably missunderstanding one of its property
        a3d87a05-d1dc-40b4-a478-a67c0a2a0256-image.png

        1 Reply Last reply
        0

        3/3

        28 Aug 2021, 18:00

        • Login

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