Results 1 to 2 of 2

Thread: Custom Container with predefined child widgets

  1. #1
    Join Date
    May 2011
    Location
    INDIA
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    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.

    panel.png

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    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, 06:34
  2. Replies: 1
    Last Post: 24th June 2011, 00:09
  3. Replies: 0
    Last Post: 7th June 2010, 08:59
  4. Replies: 5
    Last Post: 19th April 2010, 00:31
  5. container populated with custom widgets
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 16th April 2006, 22:02

Tags for this Thread

Bookmarks

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.