![]() |
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
Quote:
I'd suggest reading the documentation on this - http://doc.qt.nokia.com/qt-maemo-4.6...d-layouts.html and http://doc.qt.nokia.com/qt-maemo-4.6/layout.html should cover how widgets and layouts interact (a QDialog is really just another widget). |
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
Hey,
Rob1n said all the good things and stuff, I just would like to add one more tip: Basically, all of these classes have great static methods that should ease your life. |
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
You might want to look into getting a book about Qt such as one of those listed at http://qt.nokia.com/developer/books/ (can anyone make some specific recommendations?)
|
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
1 Attachment(s)
Quick example, basically ripped it from here and modified it to do what you're asking (simplistically, you'll still need to figure out formatting). I only left comments in the areas that I changed since you can read his original tutorial/comments at the website.
Developed, screenshotted, and uploaded to a webserver all on my N900. I love this "phone" :D! Code:
#I don't use PySide |
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
Alright thanks everyone for your support .. working like a charm now :)
One more question, how can I make the QDialog pop out from the sides, instead of from the bottom in an upward direction ? |
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
Quote:
Code:
self.setAttribute(Qt.WA_Maemo5PortraitOrientation) For more examples of orientation, how to use forms created with Qt Designer, or anything else, check out the source of maegym Code is fairly clean, though I plan to refactor a few things. |
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
Quote:
I'm asking how can I make the QDialog pop out from the left side of the screen (or from the right side of the screen), instead of poping out from the bottom of the screen ? Here is a picture to show what I mean: http://img693.imageshack.us/img693/42/p1x.png The bottom center arrow with a cross on it depicts the normal bottom --> up poping method .. how can I instead have vertical QDialogs that pop into view from either the left or right side of the screen ? Is this possible ? |
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
My guess would be subclass QDialog and override the show method and or show event, using a QPropertyAnimation.
|
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
Yep, it seems to be more difficult than I thought ... Any code examples for doing such show () method re-implementations with different animations ?
|
Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??
Any solutions ?
|
All times are GMT. The time now is 21:53. |
vBulletin® Version 3.8.8