Active Topics

 


Reply
Thread Tools
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#1
Hello,


I'm using Qt with C++ for Maemo 5.

I would like to make similar effect as in, for example, contacts app: after clicking a button (contact), new pane appears (slides in) and the close button (right corner) changes to back button.

Is it possible to do with Qt? If yes, what is the architecture of the panes?

Any references or examples would be appreciated.
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#2
I believe in Maemo these are called "stacked windows". I don't know how to do this, but I've seen a video a couple of weeks ago demonstrating stacked windows in a Maemo 5 Qt app, so it must be possible.
 

The Following User Says Thank You to pelago For This Useful Post:
Posts: 654 | Thanked: 664 times | Joined on Feb 2009 @ Germany
#3
I think you should use the new "technology preview" Qt packages:
http://qt.nokia.com/developer/qt-for-maemo-developers
http://maemo.org/packages/view/libqt4-maemo5-dev
 

The Following User Says Thank You to conny For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#4
I believe it is done automatically if you set the original QMainWindow as the parent to a new window, but I have not yet used it so take this with a grain of salt.
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
Posts: 654 | Thanked: 664 times | Joined on Feb 2009 @ Germany
#5
Also have a look here:
http://wiki.maemo.org/Qt4_Hildon/Qt_Hildon_Widgets

Those panes are originally called "HildonStackableWindows", not sure how to exactly use that with Qt. But from the wiki pages it looks like it´s possible...
 

The Following 2 Users Say Thank You to conny For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#6
Thanks for all those answers.

I have found this:
http://qt.gitorious.org/+qt-maemo-de...7137ce63afe602

so I will give it a try.
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 
Posts: 415 | Thanked: 732 times | Joined on Jan 2009 @ Finland
#7
there's QStackedLayout in Qt but i'm not sure if it shows the transition animations. I haven't tried it with Fremantle.
 
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#8
This works:

Code:
QApplication app(argc, argv);
QMainWindow* window=new QMainWindow();
window->setCentralWidget(someWidget);
              
 window->show();

QMainWindow* window2=new QMainWindow(window);
window2->show();
To create a stack window, we just need to pass another QMainWindow in constructor.
When we call window2->show() we will see transition effect.
window2 will be destroyed after pressing back button.


Thanks for your help
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me

Last edited by hopbeat; 2009-11-12 at 13:22.
 

The Following 12 Users Say Thank You to hopbeat For This Useful Post:
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#9
Hi,

I've added some information to the Developer FAQ about Qt. Some Maemo-specific links where to find documentation.

Cheers Daniel
 

The Following 9 Users Say Thank You to danielwilms For This Useful Post:
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#10
Originally Posted by hopbeat View Post
This works:

Code:
QApplication app(argc, argv);
QMainWindow* window=new QMainWindow();
window->setCentralWidget(someWidget);
              
 window->show();

QMainWindow* window2=new QMainWindow(window);
window2->show();
To create a stack window, we just need to pass another QMainWindow in constructor.
When we call window2->show() we will see transition effect.
window2 will be destroyed after pressing back button.


Thanks for your help
need to do this as well to get the back button on the top right hand corner instead of the cross to make it truly stacked
wiki updated.

Code:
secondStackableWindow->setAttribute(Qt::WA_Maemo5StackedWindow);
cheers
 

The Following 2 Users Say Thank You to krk969 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:28.