Results 1 to 3 of 3

Thread: Mac Port of Windows code

  1. #1
    Join Date
    Jan 2006
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Mac Port of Windows code

    Hello,

    I have ported to Mac a code I wrote a while back. Now while the code compiled fine the images in the resource file refuse to show up. More over after having set the Icon Size of a Button in designers calling setIcon on it changes to 16x16. I have also tried using seticon size. I have same code which works just fine in Windows. Any pointers ? Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Mac Port of Windows code

    Hello,

    Do you have some painter errors when you launch your app, and if so, is it related to those resource images ?
    You should post some sample code, and explain a little more how you use the resources


    I know that with Qt 3xx and Qt 4.0.x series, Mac support was incomplete...
    I experienced a lot of issues when I wrote my Qt3 app, two years ago...


    is your code written in Qt3 ?

    Guilugi.

  3. #3
    Join Date
    Jan 2006
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Mac Port of Windows code -SOLVED

    Hi GuiLugi

    Thanks for replying. No the code was written in QT 4.0.0. But when I ported it to the Mac I used 4.1.0. I should have realized the problem lay there You see I was calling resources to setup button backgrounds. In Qt 4.1.0 you need to explicitly call setAutofillBackgropund to render the backgrounds. ... Also Qt::Background has been deprecated. Man simple issue but a whole lot of chaos ... Thanks anyway!

Similar Threads

  1. windows code troubling Qt
    By munna in forum Qt Programming
    Replies: 9
    Last Post: 9th November 2006, 19:52
  2. C code linux to windows
    By deekayt in forum General Discussion
    Replies: 1
    Last Post: 19th October 2006, 22:17
  3. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 01:00
  4. Replies: 5
    Last Post: 15th March 2006, 07:33
  5. Qt and windows vista
    By munna in forum General Discussion
    Replies: 8
    Last Post: 11th January 2006, 22:33

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.