Results 1 to 2 of 2

Thread: Docking Widgets

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

    Default Docking Widgets

    I've been playing dock widgets some, trying to learn them. I have a couple issues with them that I don't understand. Please understand that I am new to QT and QT Creator and wanting to learn to use it.

    For example, I found the this example on the web and was trying to duplicate it. http://www.tuxradar.com/content/code...-qt-rss-reader

    They say that they add 2 dock widgets to the application and then select both and press horizontal layout, to make them resize. I've tried this and it doesn't work in Creator. Plus if you look closely at their list of widgets in the app, it only shows one. Does this make any sense ?

    The other issue I have is .... How do you get the the widgets within a dock widget to bind to the sides of the dock widget so that when I resize the window and the dock widget resizes that the widgets that are contained resize also and maintain their relative size to their container, the dock widget?

    It seems logical to me that all this should be able to be handled in Creator without having to resort to code to accomplish the tasks. Unless, of course, special case situations were required.


    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Docking Widgets

    The tutorial is wrong. You do not add DockWindows to a layout. Use the proper Qt documentation from qt.nokia.com/doc.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Mac OS X Top-Level Transparent Widgets
    By tinsuke in forum Qt Programming
    Replies: 0
    Last Post: 17th October 2008, 16:01
  2. Upper limit on number of widgets?
    By jdiewald in forum Qt Programming
    Replies: 1
    Last Post: 29th September 2008, 23:00
  3. Replies: 2
    Last Post: 16th May 2008, 14:39
  4. widgets behind hidden widgets not working
    By bpetty in forum Newbie
    Replies: 13
    Last Post: 7th September 2007, 20:23
  5. Docking widgets setFixedSize and setBaseSize Problem
    By forrestfsu in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2006, 18:20

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.