Results 1 to 2 of 2

Thread: Qt can't draw .bmp files on Windows CE 6.0

  1. #1
    Join Date
    Sep 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt can't draw .bmp files on Windows CE 6.0

    Dear everybody,

    I have a Qt-based application which runs on a Windows CE 5.0 embedded device. The application shows some
    .bmp files and it does a great work. The same application has been compiled for Windows CE 6.0 but it isn't
    able to show the same .bmp files. The WinCE 6.0 hardware platform is different from the WinCE 5.0 one.

    I really don't know where looking for the problem. Does the WinCE 6.0 image miss some component ? (The gesture and
    imaging components are all included). Does QT need some special setting during its building in order to be running on
    WinCE 6.0. ?

    Following is the code used to show bitmaps:

    cImg = new QLabel ();
    cImg -> setGeometry (0, 0, 80 * aFactor, 60);
    cImg -> setFrameShadow (QFrame::Plain);
    cImg -> setFrameShape (QFrame::NoFrame);
    cImg -> setAlignment (Qt::AlignHCenter | Qt::AlignVCenter);
    cImg -> setStyleSheet ("color: blue");
    cPx.load (aPx);
    cImg -> setPixmap (cPx);

    Any help will be really appreciated.

    Best Regards

    /Alessandro

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: Qt can't draw .bmp files on Windows CE 6.0

    I don't know anything about WinCE, but I would start by checking two things:
    1) Does any other Qt application show BMP files? -- To see whether Qt is ok or not.
    2) Would the code work with other file formats, like JPEG or PGN? -- To see if the problem is something generic or just related to BMP files.

Similar Threads

  1. Draw lines connecting two sub-windows of QMdiArea
    By tom701 in forum Qt Programming
    Replies: 2
    Last Post: 12th September 2010, 20:24
  2. Replies: 2
    Last Post: 6th September 2010, 14:22
  3. Convert Windows .rc files for use by Qt?
    By pineweasel in forum Newbie
    Replies: 1
    Last Post: 1st June 2009, 15:53
  4. open files in different windows
    By ramaha8319 in forum Qt Tools
    Replies: 1
    Last Post: 27th April 2009, 14:27
  5. Replies: 2
    Last Post: 30th August 2006, 10:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.