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] Why do I get two QDockWidgets in Qt Designer when I only dragged one onto the form?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Why do I get two QDockWidgets in Qt Designer when I only dragged one onto the form?

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

    First, let me state that I want to use Qt Designer to create my GUI.
    I wish to create a Dock Widget that holds a List Widget.
    There are my actions in order:
    1- Drag Dock Widget onto form
    2- Drag List Widget onto Dock Widget
    3- Press F5 to invoke debug build
    4- During runtime I see a window with TWO Dockwidgets with one List Widget in each

    In the Qt Designer form I only see one Dock Widget with one List Widget
    The Object Inspector shows:
    dockWidget ..................................QDockWidget
    ......dockWidgetContents.............QWidget
    ...........listWidget...........................QListWidget

    Why is this happening and how do I fix it so I get only one Dock Widget at runtime?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      codewriter
      wrote on last edited by
      #2

      Apparently, when I redid the whole GUI in Qt Designer my problem vanished.

      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