Results 1 to 4 of 4

Thread: QStackWidget background image problem

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QStackWidget background image problem

    Hi,

    As the title shows, my problem is regarding changing the backgorund of QStackedWidget with 2 pages.

    I'm using qss file so using css. The first page is the default login page and it's background image loaded properly.

    But when the login is finished and the second page is raised, the background image of it isn't loaded but first page' image stays at background.

    I don't use QPallette or paintEvent method in the parent widget of my QStackWidget or one of my page classes.

    Thanks in advance.


    Added after 50 minutes:


    By the way, the problem arised after I migrate to Qt 4.8.

    With Qt 4.4 everything was working just perfect.
    Last edited by zgulser; 7th May 2012 at 13:45.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QStackWidget background image problem

    problem could be in your code or css. Nice of you to share it with us. Oh, wait.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QStackWidget background image problem

    Oh by the way problem arised when I migrated to Qt 4.8.

    In Qt 4.4, with same css, everthing was working just perfect.

  4. #4
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QStackWidget background image problem

    This is somehow similar for QTabWidget.

    After the migration, it also changed a little bit with my same css I used with Qt 4.4

Similar Threads

  1. How to set spinner image for qstackwidget ???
    By naufalahad in forum Qt Programming
    Replies: 11
    Last Post: 22nd December 2011, 02:39
  2. Replies: 0
    Last Post: 5th April 2011, 13:36
  3. Replies: 10
    Last Post: 10th November 2010, 03:12
  4. Replies: 0
    Last Post: 9th July 2010, 14:06
  5. BIG Problem with Background-image using Style Sheets
    By PiXeL16 in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2007, 22:10

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.