<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Frank!<br>
<br>
For me, it seems, you are not really looking after a QTableWidget
and I guess also not a QTableView (if you don't want the headers and
lines etc.). So I just hacked some lines of code together (mostly
edited yours, quick and dirty style as usual, but should give you an
idea). Probably it's not what you are looking for, because I
couldn't understand all your wishes, but it could be interesting
anyways for other developers looking after an animated GUI (please
forgive me the quick and therefore bad layout, I like implementing
more than moving pixels around...):<br>
<br>
<a class="moz-txt-link-freetext" href="http://pastebin.com/jQtsf2tk">http://pastebin.com/jQtsf2tk</a><br>
<br>
You can show or hide a widget with the checkboxes and sort them with
the button.<br>
<br>
Hope it helps!<br>
Aaron<br>
<br>
<br>
<br>
<br>
<br>
Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx:
<blockquote cite="mid:4F7E9780.2030809@ohufx.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
yes, I think I'm starting to get it, thanks.<br>
<br>
So here is a very rough and ugly test using a single animated
table (feel free to laugh):<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://pastebin.com/PbZ8ismH">http://pastebin.com/PbZ8ismH</a><br>
<br>
I am trying to see if it's feasible to stuff all my widgets into
one big table, then animate the table's position so that only the
requested column(s) are within the view according to which button
is pushed on the left hand side. Obviously I'd have to hide the
headers and lines etc. (no idea how to do that yet either).<br>
<br>
What do people think how best to approach this? The above doesn't
feel right and I'd have to do a lot of hacking to make this look
pretty (though the animation is easy to control as it's just one
widget). Or should I rather create one table per button and move
them around as a group (I guess I could hide the unwanted tables
as well then).<br>
<br>
Or does anyone have completely different ideas how to tackle this?
I'm sure there is a way more elegant solution.<br>
I'm still trying to stick to default QT stuff before I dive into
Qt Quick and such.<br>
<br>
Thanks for all the help and pointers so far!<br>
<br>
frank<br>
<br>
<br>
On 4/6/12 6:28 PM, Tibold Kandrai wrote:
<blockquote cite="mid:4F7E8D20.5000004@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi!<br>
<br>
Exactly! Instead of QAnimationGroup you have to use <a
moz-do-not-send="true"
href="http://qt-project.org/doc/qt-4.8/qparallelanimationgroup.html"
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding-top: 0px; padding-right: 0px;
padding-bottom: 0px; padding-left: 0px; color: rgb(0, 115,
47); text-decoration: none; font-family: Verdana, 'DejaVu
Sans', Geneva, sans-serif; font-size: 12px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; background-color: rgb(255, 255, 255); ">QParallelAnimationGroup</a><span
style="color: rgb(54, 53, 52); font-family: Verdana, 'DejaVu
Sans', Geneva, sans-serif; font-size: 12px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; background-color: rgb(255, 255, 255); display: inline
!important; float: none; "><span class="Apple-converted-space">
or</span><span class="Apple-converted-space"> </span></span><a
moz-do-not-send="true"
href="http://qt-project.org/doc/qt-4.8/qsequentialanimationgroup.html"
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding-top: 0px; padding-right: 0px;
padding-bottom: 0px; padding-left: 0px; color: rgb(0, 115,
47); text-decoration: none; font-family: Verdana, 'DejaVu
Sans', Geneva, sans-serif; font-size: 12px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; background-color: rgb(255, 255, 255); ">QSequentialAnimationGroup</a><span
style="color: rgb(54, 53, 52); font-family: Verdana, 'DejaVu
Sans', Geneva, sans-serif; font-size: 12px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; background-color: rgb(255, 255, 255); display: inline
!important; float: none; ">.</span><br>
Or you can create your own group by subclassing QAnimationGroup
if you have special needs. :)<br>
<br>
Cheers,<br>
Tibold<br>
<br>
On 06/04/2012 06:45, Frank Rueter | OHUfx wrote:
<blockquote cite="mid:4F7E74FE.1020902@ohufx.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
I think I found the problem in the fact that it's an abstract
class and not meant to be used directly.<br>
the joy of learning new stuff....<br>
<br>
<br>
On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote:
<blockquote cite="mid:4F7E6B81.1090105@ohufx.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Thanks again for this tip Tibold. It seems to be what I'm
after, though I just discovered that QAnimationGroup doesn't
seem to be supported in PySide. I got this error when I
tried to create an instance of it:<br>
<br>
NotImplementedError: 'QAnimationGroup' represents a C++
abstract class and cannot be instantiated<br>
<br>
<br>
I will try and add all widgets to one "page" widget
(whatever that may be, I need to find out yet), and then
apply the animation to that.<br>
Fingers crossed...<br>
<br>
Cheers,<br>
frank<br>
<br>
<br>
On 4/4/12 7:29 PM, Tibold Kandrai wrote:
<blockquote cite="mid:4F7BF86E.7050105@gmail.com"
type="cite">
<pre wrap="">Hey!
Try QtAnimation:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://qt-project.org/doc/qt-4.8/animation-overview.html">http://qt-project.org/doc/qt-4.8/animation-overview.html</a>
I use it with in a QGraphicsWidget, but this should work everywhere AFAIR.
Cheers,
Tibold
On 04/04/2012 06:46, Frank Rueter | OHUfx wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi everyone,
I'm very new to Qt/PySide and am wondering if it's possible to add an
animation effect to, let's say, QStackedLayout, for when the page
changes. I guess it'd something similar to the way the AppStore works.
In this example I'd like to see the new button "push" the old button out
of view when the combobox changes:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://pastebin.com/i5sFgQzE">http://pastebin.com/i5sFgQzE</a>
I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time
finding the right bit of information out there.
Any help would be greatly appreciated.
Cheers,
frank
_______________________________________________
PySide mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:PySide@qt-project.org">PySide@qt-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/pyside">http://lists.qt-project.org/mailman/listinfo/pyside</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PySide mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:PySide@qt-project.org">PySide@qt-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/pyside">http://lists.qt-project.org/mailman/listinfo/pyside</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PySide mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:PySide@qt-project.org">PySide@qt-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/pyside">http://lists.qt-project.org/mailman/listinfo/pyside</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PySide mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:PySide@qt-project.org">PySide@qt-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/pyside">http://lists.qt-project.org/mailman/listinfo/pyside</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Tibold Kandrai,
CEO @ Dotz Team I/S,
Software developer, consultant</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PySide mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:PySide@qt-project.org">PySide@qt-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/pyside">http://lists.qt-project.org/mailman/listinfo/pyside</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PySide mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PySide@qt-project.org">PySide@qt-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/pyside">http://lists.qt-project.org/mailman/listinfo/pyside</a>
</pre>
</blockquote>
<br>
</body>
</html>