Results 1 to 11 of 11

Thread: WYSIWYG html, Window show png icon mac no!

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default WYSIWYG html, Window show png icon mac no!

    I have build a small WYSIWYG html editor ... 50% designer
    http://ciz.ch/svnciz/forms_shop/form...ui/tab_addo.ui but mac not show png image why? on window i see image..
    Image: Shoot http://www.qtforum.de/forum/files/macpng_240.png
    i use ArrowType qpuschbutton to better show checkable down button...
    http://doc.trolltech.com/4.0/qt.html#ArrowType-enum

    svn http://ciz.ch/svnciz/forms_shop/ is /root

    How save png to better show on MAC tiger...?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: WYSIWYG html, Window show png icon mac no!

    Can we see some code?

  3. #3
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: WYSIWYG html, Window show png icon mac no!

    svn co http://ciz.ch/svnciz/forms_shop/ tester
    cd tester && qmake && make

    3MB source

    or browser http://ciz.ch/svnciz/forms_shop/forms_shop/

    the WYSIWYG wo not display png is http://ciz.ch/svnciz/forms_shop/forms_shop/tab_addo.h

    mac not display this pngs http://ciz.ch/svnciz/forms_shop/form...g/text_editor/

    The question is only how to save png to mac tiger Intel/PPC
    the same image works on window...

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: WYSIWYG html, Window show png icon mac no!

    I meant the code which is causing you trouble, not the code of the whole application. Sorry, but I don't intend to read through 3MB of code to look for the problem.

  5. #5
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: WYSIWYG html, Window show png icon mac no!

    the code wo give trouble is a ui file...
    the C++ code result is from qmake.....

    http://ciz.ch/svnciz/forms_shop/form...ui/tab_addo.ui

    get file tab_addo.ui

    and
    uic -o ui_tab_addo.h tab_addo.ui
    that is the trouble code .... wo not display pngs icon...

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: WYSIWYG html, Window show png icon mac no!

    <iconset resource="..\res.qrc" >:/img/img/fileopen.png</iconset>
    Maybe because of those backslashes? Or maybe simply the path to the resource file is invalid?

  7. #7
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: WYSIWYG html, Window show png icon mac no!

    the code wo give trouble is a ui file...
    the C++ code result is from qmake.....

    http://ciz.ch/svnciz/forms_shop/form...ui/tab_addo.ui

    get file tab_addo.ui

    and
    uic -o ui_tab_addo.h tab_addo.ui
    that is the trouble code .... wo not display pngs icon...on mac and window show...

    if you download and test
    svn co http://ciz.ch/svnciz/forms_shop/ tester
    cd tester && qmake && make

    you dont need qt4 plug-ins... sqlite3 staticlibs is inside!
    and config is on bin Destdir make...
    by import db you donwload only master table...

    <?xml version="1.0" encoding="UTF-8"?>
    <wget xmlns:cms="http://www.pulitzer.ch/2005/PuliCMS/1.0">
    <requestfile sqlurl="http://ppk.ciz.ch/qt_c++/db/customers.sql" localname="1sampledata.sql" />
    <requestfile sqlurl="http://ppk.ciz.ch/qt_c++/db/customers.sql" localname="2sampledata.sql" />
    </wget>

  8. #8
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: WYSIWYG html, Window show png icon mac no!

    the resource file is on root..

    http://ciz.ch/svnciz/forms_shop/forms_shop/res.qrc

    and uic result write...
    copy_to_new->setIcon(QIcon(QString::fromUtf8(":/img/img/text_editor/filenew.png")));

    my other projekt http://sourceforge.net/projects/qtexcel-xslt/
    is the same way and mac display this fake png .... window to
    the unique diff this new projekt have 1 sound on resource other no....

    /root/
    /resource.qrc
    /image/
    /ui/
    /.build/

  9. #9
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: WYSIWYG html, Window show png icon mac no!

    qt4 question?
    Why on \qt4\demos\textedit\images
    have a folder win and other Mac
    I take this mac image.... and window display and mac no....
    mayby subversion from Window? destroy image?

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: WYSIWYG html, Window show png icon mac no!

    Quote Originally Posted by patrik08
    qt4 question?
    Why on \qt4\demos\textedit\images
    have a folder win and other Mac
    I take this mac image.... and window display and mac no....
    mayby subversion from Window? destroy image?
    Because Mac uses different styled icons (more "glassy" ones) than Windows. It's just the matter of look&feel.

  11. #11
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: WYSIWYG html, Window show png icon mac no!

    Ok i solved.....

    I boot my debian sarge 2° disk....
    svn donload all svn.. 1/2 minute
    oben the ui file on linux designer remove all
    http://doc.trolltech.com/4.0/qt.html#ArrowType-enum from icon
    qmake && make
    and now icon is show... I hope now mac can see..... mac & linux is not big diffs....

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.