Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2012

    Screenshot in landscape usint Qt

    I am using the following code to take screenshot in a Nokia device using Qt

    QDesktopWidget *w = QApplication::desktop();
    if (w)
            QRect r = w->screenGeometry();
            originalPixmap = QPixmap::grabWindow(w->winId(),0,0,r.width(), r.height());
    originalPixmap.save(folder_path, format.toAscii().constData());

    The code is working fine for portrait orientation. When I tilt the device to landscape, the captured image contains only half the width of the screen. Please help. Thanks in advance.

  2. #2
    Registered User
    Join Date
    Jan 2009
    Melbourne, Australia

    Re: Screenshot in landscape usint Qt

  3. #3
    Registered User
    Join Date
    Nov 2012

    Re: Screenshot in landscape usint Qt

    solved this, I have fixed my app to work only in portrait, now changed it to work both ways and screenshots are fine now. Thanks

Similar Threads

  1. Replies: 2
    Last Post: 2010-12-03, 11:32
  2. Screenshot
    By mohitrb1 in forum Mobile Java General
    Replies: 22
    Last Post: 2010-03-26, 14:03
  3. screenshot not possible
    By _Askin_ in forum Mobile Web Server
    Replies: 4
    Last Post: 2008-05-30, 07:27
  4. Wap push Usint AT Command
    By kannabiran.k in forum General Messaging
    Replies: 1
    Last Post: 2008-02-15, 12:05
  5. Replies: 0
    Last Post: 2006-05-18, 16:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts