Trolltech Home | Qt-embedded-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-embedded-interest Archive, July 2007
qt dialogs display orientation


Message 1 in thread

Hi all,

I'm developing qt software on S3c2440 system and using a 240*320 tft
sceen. My software is mainly composed of QT Dialog. I now want the
dialogs to display in a 320*240 way to make full use of the screen,
namely, I want them to rotate 90 degrees to display.

Does anybody know how to do this?

Thanks,
Scott

To unsubscribe - send "unsubscribe" in the subject to qt-embedded-interest-request@xxxxxxxxxxxxx


Message 2 in thread

On Saturday 07 July 2007 03:06:30 smallcar Gu wrote:
> Hi all,
>
> I'm developing qt software on S3c2440 system and using a 240*320 tft
> sceen. My software is mainly composed of QT Dialog. I now want the
> dialogs to display in a 320*240 way to make full use of the screen,
> namely, I want them to rotate 90 degrees to display.
>
> Does anybody know how to do this?
>

With Qtopia Core you should make sure that you've configured with the 
transformed driver (configure -qt-gfx-transformed). You should then be able 
to start your application with ./myapp -qws -display transformed:Rot90. This 
will rotate all contents, not only your dialogs. 

If you only want to rotate your full-screen dialogs, you could for instance 
change the rotation just before the dialog is shown: Run your application 
with ./myapp -qws -display transformed and before showing your dialog, do
static_cast<QTransformedScreen*>(QScreen::instance())->setTransformation(QTransformedScreen::Rot90);

This will only work within the server application (the one started with -qws).

--
 [ signature omitted ] 

Message 3 in thread

Hi,

The Qt edition I'm using now is Qt/E 3.3.6 without Qtopia. I followed
ur direction to configure Qt with the transformed driver and there was
no error during the compilation phase. But when I tried to start my
application with ./myapp -qws -display transformed:Rot90, it failed
with the error:"transformed: driver not found".
I checked the "src/embedded" directory and found
"qgfxtransformed_qws.cpp" and "qgfxtransformed_qws.h" in it. I think
they should be compiled into the lib, but why can't Qt find this
driver?

Thanks,
Scott


On 7/7/07, Håvard Wall <haavardw@xxxxxxxxxx> wrote:
> On Saturday 07 July 2007 03:06:30 smallcar Gu wrote:
> > Hi all,
> >
> > I'm developing qt software on S3c2440 system and using a 240*320 tft
> > sceen. My software is mainly composed of QT Dialog. I now want the
> > dialogs to display in a 320*240 way to make full use of the screen,
> > namely, I want them to rotate 90 degrees to display.
> >
> > Does anybody know how to do this?
> >
>
> With Qtopia Core you should make sure that you've configured with the
> transformed driver (configure -qt-gfx-transformed). You should then be able
> to start your application with ./myapp -qws -display transformed:Rot90. This
> will rotate all contents, not only your dialogs.
>
> If you only want to rotate your full-screen dialogs, you could for instance
> change the rotation just before the dialog is shown: Run your application
> with ./myapp -qws -display transformed and before showing your dialog, do
> static_cast<QTransformedScreen*>(QScreen::instance())->setTransformation(QTransformedScreen::Rot90);
>
> This will only work within the server application (the one started with -qws).
>
> --
> hw
>

To unsubscribe - send "unsubscribe" in the subject to qt-embedded-interest-request@xxxxxxxxxxxxx