[Qt-interest] layout screen color

rajasekharan websweetweb at gmail.com
Mon Aug 24 12:39:42 CEST 2009


Bob Alison wrote:
> Hi, i am a new in Qt.
> 1) i have been wondering whether anybody
> could give ideas how to create a layout (like in HTML), and basically
> to organize each layout "sub-window" (without QtAssistant) ?
Create layout objects and add the widgets to them. Use
QHBoxLayout if you want to layout the widgets horizontaly
QVBoxLayout if you want to layout vertically. You can nest layouts
inside each other so you can create any layout with these two.
> 2) secondly, could anybody assist which methods (class functions)
> could be used to control color (palete) of a layout "sub-window" ?
You can use CSS to set the color of a widget. Look at QWidget::setStyleSheet
> 3) as well as how to insert a graphical files into the widgets ?
Add QImage to the widget or use CSS to add a background image,
or use QLabel.
>
> thanks.
> Bob
>
> ------------------------------------------------------------------------
> Windows Live Messenger: Celebrate 10 amazing years with free winks and 
> emoticons. Get Them Now 
> <http://clk.atdmt.com/UKM/go/157562755/direct/01/>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090824/d537a150/attachment.html 


More information about the Qt-interest-old mailing list