[Qt-interest] adjusting the sizes of a QSplitter

Lorenzo Bettini bettini at dsi.unifi.it
Wed Nov 4 14:08:32 CET 2009


John McClurkin wrote:
> Lorenzo Bettini wrote:
>> Hi
>>
>> I'm using a vertical QSplitter to separate a QTextEdit and a QTextBrowser.
>>
>> Now, when putting everything in a grid layout the splitter reservers a 
>> small space for the editor and a wider space for the browser.
>>
>> Like this
>>
>> | TextEdit  ||      Browser      |
>>              ^
>>             splitter
>>
>> Is there  a way to adjust/initialize the splitter so that it is on the 
>> half, something like this
>>
>> | TextEdit      ||     Browser   |
>>
>> thanks in advance
>>     Lorenzo
>>
> Have you tried settings the sizes or sizeHints of the TextEdit and Browser?

In that case, what would be the right values for size hints?

thanks in advance
	Lorenzo

-- 
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net




More information about the Qt-interest-old mailing list