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 create a custom container (like QMainWindow) designable in Designer?
Forum Updated to NodeBB v4.3 + New Features

How to create a custom container (like QMainWindow) designable in Designer?

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

    I want to create a custom widget with some predefined children, and a centralWidget for derived classes to put other widgets in.
    I tried, but you can drag and drop child widget everywhere in the designer! How to make children dragable only in the centralWidget's aera? What's more, how if I want a more dockWidget area?

    So, what's the solution? Help!

    Pl45m4P 1 Reply Last reply
    0
    • S Sauntor

      I want to create a custom widget with some predefined children, and a centralWidget for derived classes to put other widgets in.
      I tried, but you can drag and drop child widget everywhere in the designer! How to make children dragable only in the centralWidget's aera? What's more, how if I want a more dockWidget area?

      So, what's the solution? Help!

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @Sauntor

      centralWidget is only the pre-defined objectname for the default content (widget) of a QMainWindow, which is a QWidget itself.
      What's wrong with using the basic QMainWindow?!
      Especially using QtDesigner only, it will be hard to implement your idea.

      I tried, but you can drag and drop child widget everywhere in the designer! How to make children dragable only in the centralWidget's aera?

      That sounds like QtDesigner specific design-mode behavior and not how the widget behaves at runtime.
      I'm thinking of a modified QtDesigner with a designer plugin for your widget... but why?!


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      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