Results 1 to 4 of 4

Thread: Doubts in 40000 chips

  1. #1
    Join Date
    Feb 2007
    Posts
    15
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Question Doubts in 40000 chips

    Hello everyone,
    I´m new to Qt and I was exploring the 40000 chips demo, trying to adapt it to the application I want to build. That app is a map where i can see the objects located in the map.

    1) What is the use of x and y in the chip(color, x, y)? Are they coordinates?

    2) I tried to use an image as a background image, but tiles show up? Any way to expand the image so it takes up the whole space?

    That´s it for the moment, I hope someone can help me.

    Regards.

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

    Default Re: Doubts in 40000 chips

    Quote Originally Posted by prosass View Post
    1) What is the use of x and y in the chip(color, x, y)? Are they coordinates?
    Yes, they are.

    2) I tried to use an image as a background image, but tiles show up? Any way to expand the image so it takes up the whole space?
    Sure, scale the pixmap accordingly before applying it.

  3. #3
    Join Date
    Feb 2007
    Posts
    15
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Doubts in 40000 chips

    Thanks Wysota, but I have an additional question.

    I was able to avoid the tiles by using a QPixmap and adding it to the scene. Now my problem is that I want to adapt the image that I use to fit the screen. For example, if the image´s size is several megapixels, I want it to fit in my screen so I don´t have to use the zoom out everytime I load an image. How do I do this?

    Thanks in advance and regards.

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

    Default Re: Doubts in 40000 chips


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.