Results 1 to 10 of 10

Thread: QListWidget graphical glitch

  1. #1
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QListWidget graphical glitch

    I am experiencing a strange graphical glitch with a QListWidget. The list widget is part of a custom control. I have a custom color pallet, of white text on a black background. Works fine on the development machine. On 2 different deployment machines, it appears as white text on a white background. This only happens on the Linux version, the Windows version is fine. I tried using a style sheet, no difference. This is also a new problem. I have installed this app on Linux machines before and it was fine. This happened when I installed a new version. What is even weirder is that the code that displays this widget wasn't changed from one version to the next. Any ideas you have would be appreciated.

  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: QListWidget graphical glitch

    How do you adjust the looks of the widget?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QListWidget graphical glitch

    You don't. The entire thing is done in a hight contrast theme, with white text, buttons, etc. on a black background.

    If I try to change the theme on the Ubuntu deployment machine to High Contrast Inverse, the list widgets appear correctly, but the frames disappear, as do the letters on the round buttons at the top. Thanks.
    Last edited by wysota; 14th March 2011 at 18:53. Reason: removed URLs

  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: QListWidget graphical glitch

    Quote Originally Posted by skepticalgeek View Post
    You don't.
    What do you mean "you don't"? You said you were applying a custom palette.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. The following user says thank you to wysota for this useful post:

    skepticalgeek (14th March 2011)

  6. #5
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QListWidget graphical glitch

    Sorry, misunderstood. The user does not change the look of the widget. I changed it by setting a custom palate in Qt Creator, setting Window and Base to black, and Text, WindowText, etc. to white. When the problem appeared, I tried using a stylesheet with background as black and color as white. No difference.

    Sorry about the infraction. Did not know the correct procedure for inserting an image into a post. I can't insert them now since I am at my work PC, but if you want to see them I can post them later.

  7. #6
    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: QListWidget graphical glitch

    What widgets have you set the custom palette on?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #7
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QListWidget graphical glitch

    The custom widget consists of a Frame, several Labels, and a List Widget. I applied the custom pallet to the frame, and the labels inherited it correctly. I had to manually set it for the list though. Anyway, here are the screenshots. The first is how the screen is supposed to look, and how it actually looks on the development machine, as well as the Windows deployment machine. The second is what is showing up on the Linux deployment machine. Also, previous Linux versions of this app appeared correctly, it is only the most recent update where this is happening, and the code for this widget did not change between one version and the next.ScreenshotWrong.jpgScreenshotRight.jpg

  9. #8
    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: QListWidget graphical glitch

    Did you apply the palette to the views' viewports?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #9
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QListWidget graphical glitch

    I don't know what that is or how to do that. I just used the tool in Qt Creator to assign custom colors to the various object properties.

  11. #10
    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: QListWidget graphical glitch

    Quote Originally Posted by skepticalgeek View Post
    I don't know what that is or how to do that.
    Then maybe you should get familiar with 'that'.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Phonon Windows TotalTime glitch
    By skepticalgeek in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2010, 22:17
  2. Graphical representation of an array
    By ithinkso in forum Qt Programming
    Replies: 2
    Last Post: 5th March 2010, 23:30
  3. icon glitch in QListView
    By trhaynes in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2009, 19:48
  4. graphical line
    By eleanor in forum Qt Programming
    Replies: 3
    Last Post: 3rd July 2008, 10:09

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.