Results 1 to 5 of 5

Thread: Static content resolution to window

  1. #1
    Join Date
    Dec 2015
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default Static content resolution to window

    Hello!

    What I'm trying to ask is that how to set window's content resolution to static where resize of the window doesn't affect to resolution of the content? When size of the window is changed the content's resolution stays there where it was at the beginning of start. In other words the content is going more blurry when resizing the window to bigger.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Static content resolution to window

    That depends on your content.
    If your content is an image, then scaling it up will result in less precision.
    If your content is vector based, it will likely just be drawn again at the newly available gemeotry.

    Cheers,
    _

  3. #3
    Join Date
    Dec 2015
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Static content resolution to window

    Here's little more explanation about this issue:

    I want widget's content being stayed on default resolution despite of the window resizing. So is it possible to let the widget be in one resolution all the time but the window still can resize?

    EDIT.
    And yeah, I'm trying to develope with PyQt5

    EDIT.
    The widget is resizing as well when window is resized to bigger, but the widget and its content goes more blurry
    Last edited by QT_NUB; 25th December 2015 at 12:41.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Static content resolution to window

    I am afraid it is not at all clear what you want to achieve.

    Usually a window content should be as clear as possible, but you want it to become unreadable?

    Cheers,
    _

  5. #5
    Join Date
    Dec 2015
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Static content resolution to window

    "Usually a window content should be as clear as possible, but you want it to become unreadable?" - Yes, when user has changed window's size from default size to bigger size.

    Let's imagine that a widget is an image which has resolution of 1280x720. We can stretch or scale the image to bigger but it looks more blurry (because the image won't go higher resolution). So in this case I want the widget to be stretched bigger (whenever user wants to resize the window e.g. to full screen from lower resolution) and its content should go more blurry.

    This is best explanation that I can do, sry ;(

Similar Threads

  1. TableView model in Designer with static content
    By akshaysulakhe in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2013, 17:55
  2. Replies: 6
    Last Post: 9th November 2011, 04:31
  3. recize window application and all the content
    By spiderman3000p in forum Qt Programming
    Replies: 3
    Last Post: 12th July 2010, 03:00
  4. Replies: 1
    Last Post: 11th June 2010, 09:47
  5. ResizeEvent frame vs window content
    By bitChanger in forum Newbie
    Replies: 2
    Last Post: 14th March 2006, 17:34

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.