]> Creatis software - bbtk.git/blobdiff - packages/qt/bbs/appli/exampleQLayoutSplit.bbs
Fixed Window deletion mechanism
[bbtk.git] / packages / qt / bbs / appli / exampleQLayoutSplit.bbs
diff --git a/packages/qt/bbs/appli/exampleQLayoutSplit.bbs b/packages/qt/bbs/appli/exampleQLayoutSplit.bbs
new file mode 100644 (file)
index 0000000..3953291
--- /dev/null
@@ -0,0 +1,28 @@
+author "laurent.guigues@creatis.insa-lyon.fr"
+description "Example of QLayoutSplit widget"
+category "example"
+
+load qt
+load std
+new QSlider s
+new QOutputText t
+connect s.Out t.In 
+connect s.BoxChange t.BoxExecute
+set s.In 100
+set s.Min 10
+set s.Max 1000
+set s.WinHeight 100
+set s.WinWidth 100
+
+new QLayoutSplit l
+set l.Orientation Vertical
+connect s.Widget l.Widget1
+connect t.Widget l.Widget2
+new QSlider s2
+connect s2.Widget l.Widget3
+
+set l.Weight1 5
+set l.Weight2 1
+set l.Weight3 2
+
+exec l