[Qt-creator] Docking Widgets and size issues
Coda Highland
coda at bobandgeorge.com
Thu Nov 26 01:20:27 CET 2009
Short answer: A QDockWidget has a single "widget" that you set on it;
to apply multiple widgets, use a blank QWidget and put a layout etc.
as children of it.
/s/ Adam
On Wed, Nov 25, 2009 at 3:33 PM, Ken Ray <ken at ishere.com> wrote:
>
> 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-project-create-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?
>
> thanks
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
More information about the Qt-creator-old
mailing list