Results 1 to 2 of 2

Thread: customizing QDockWidget

  1. #1
    Join Date
    Dec 2009
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default customizing QDockWidget

    Hello all,

    I am trying to create a customized QDockWidget. I have tried to inherit the class and for some reason I lose two critical properties (dockWidgetArea and docked). Without these two properties I cannot dock the widget. I intentionally remove all my customizations in my extended class and I still cannot regain these two properties.

    any ideas?

    here are 2 snapshots - notice that on my extended class, the last two properties (dockWidgetArea and docked are not available).
    Attached Images Attached Images
    Last edited by walden02; 12th February 2010 at 19:18. Reason: Adding pictures

  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: customizing QDockWidget

    Unfortunately some things are hardcoded in Qt Designer and some class names are checked literally so if you subclass QDockWidget, it is not being treated as a dock widget anymore by Designer. But the real question is - why do you want to subclass QDockWidget?
    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. Customizing QFileDialog
    By ScabrusMantra in forum Qt Programming
    Replies: 8
    Last Post: 22nd July 2011, 12:03
  2. Customizing QToolBox:tab
    By ialnik in forum Qt Programming
    Replies: 5
    Last Post: 5th February 2010, 17:12
  3. customizing QScrollbar
    By MarkoSan in forum Qt Programming
    Replies: 7
    Last Post: 15th October 2009, 18:51
  4. Customizing Sorting
    By delalaym in forum Qt Programming
    Replies: 2
    Last Post: 12th March 2009, 00:22
  5. Customizing QScrollBar
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 2nd February 2006, 18:01

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.