Results 1 to 2 of 2

Thread: Custom Container with predefined child widgets

  1. #1
    Join Date
    May 2011
    Qt products
    Qt4 Qt5
    Unix/X11 Windows Android

    Smile Custom Container with predefined child widgets

    I am trying to create a custom container which has top region, bottom region and a central region [like QMainwindow].
    The central widget is scrollable. If I create the custom plugin with these widgets , then while drag and drop, the parent is the whole widget instead of central widget. e.g:- If I add a button , instead of it is created added to the central widget , it gets added to Form and it takes the parent layout.

    This works well if I create the widgets in domXml(). But disadvantage of domXML() is the Widget can be deleted in designer and if created by new it doesn't come with predefined widget.
    Please refer the image attached.

    I want the way QMainWindow manages the layout for Toolbar ,status bar and central widget.
    I can't make use of Mainwindow, because incase of Toolbar, I need QLabel and Instead of QStatusbar, I need QFrame.
    Any help is appreciated.


  2. #2
    Join Date
    Jan 2006
    Warsaw, Poland
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits

    Default Re: Custom Container with predefined child widgets

    Show us some related code, please.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.

Similar Threads

  1. Qt Designer Custom Container child widgets behavior
    By krpent in forum Qt Programming
    Replies: 0
    Last Post: 29th December 2013, 05:34
  2. Replies: 1
    Last Post: 23rd June 2011, 23:09
  3. Replies: 0
    Last Post: 7th June 2010, 07:59
  4. Replies: 5
    Last Post: 18th April 2010, 23:31
  5. container populated with custom widgets
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 16th April 2006, 21:02

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.