Results 1 to 2 of 2

Thread: qtopia window decoration cannot show caption

  1. #1
    Join Date
    Oct 2006
    Posts
    15
    Qt products

    Default qtopia window decoration cannot show caption

    hi, all

    i am studying qtopia2.2.0. in some applications, the phoneheader is not needed to show, hide it, so the window decoration of the widget can be shown. but it only show a retangle area of highlight color without caption. however, if the widget is a QDialog, the caption can be shown.

    anyone knows the window decoration in qtopia?
    i checked the code, it seems qpeapplication::applyStyle() function calls qwsSetDecoration( ), whose parameter is QPEDecoration. with phone version, finally it uses PhoneDecoration, but PhoneDecoration does draw TitleText. so what is the problem?

    anyone can help me? thanks in advance.

  2. #2
    Join Date
    Oct 2006
    Posts
    15
    Qt products

    Default Re: qtopia window decoration cannot show caption

    i find the answer.

    PhoneDecoration does draw TitleText, but only when the window is not maximized. however, we use QTOPIA_MAIN macro which will show the main window maximized, so the caption won't show.

Similar Threads

  1. WYSIWYG html, Window show png icon mac no!
    By patrik08 in forum Qt Programming
    Replies: 10
    Last Post: 25th May 2006, 13:01
  2. Using kwm window caption bar color
    By OldJohnB in forum Qt Programming
    Replies: 7
    Last Post: 9th February 2006, 05:00

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.