Community Forums Today's Posts     Member List     Archive    
Results 1 to 6 of 6

Thread: Qwidget issues

  1. #1
    Join Date
    Oct 2011
    Posts
    4

    Qwidget issues

    With the background color set to transparent in Qwidget my whisper lists window does not function properly. If i change the color code to #000000, the whisper list runs perfectly, but then it covers my image and background colors in Qmainwindow and in Qwidget: : pane. Is there something Im missing in the qwidget to keep it from affecting the other sections?


    }
    QWidget {
    color: #e6e6e6;
    Background-color: transparent;
    }
    QMainWindow {
    background-image: url('Styles/ArmoredFist/Images/top test.png');
    background-position: right top;
    background-repeat:repeat-x;
    background-attachment:fixed;
    background-color: #000000;
    color: #ffffff;
    }
    QWidget:ane {
    top: 12px;
    bottom: 2px;
    color: transparent;
    border: 1px solid #333333;
    margin-left: 7px;
    margin-right: 7px;
    background: transparent;
    background-image: url('Styles/ArmoredFist/Images/top2.png');
    background-position: center;
    background-repeat:no-repeat;
    Last edited by USMCGhost; 21-10-2011 at 21:48.

  2. #2
    Join Date
    Mar 2012
    Posts
    5
    same problem, would love to know a solution.

    I cant find any way to override the QWidget background-color after setting it, and without setting it whisper lists and permissions have no background set.

  3. #3
    Join Date
    Aug 2009
    Location
    Germany
    Posts
    47
    To be honest, I'm not completely sure what you are going to achive.

    Almost every Qt "window" is based on a QWidget and I think because of
    that you just can't set the background to transparent.

    You maybe have to specify the whisper widget by using QWidget#detailsWidget{ ... }.
    I found the exact name with the hotkey "Stylesheet Helper" btw in case you don't know.
    Is this what you are trying to do?

    Code:
    QWidget#detailsWidget{
    color:#e6e6e6;
    background-color:transparent;
    background-image:url('styles:default/logo-128x128.png');
    }
    And what is a QWidget pane? Does every widget really have one?

    Code:
    QWidget::pane {
     color:blue;
    }
    I think not because I can't see any blue stuff.

  4. #4
    Join Date
    Jan 2013
    Posts
    3
    The issue you're having is that the inheritence of the transparency affects all sibling classes unless otherwise specified.

    In the case of your whisper lists, (and a few other odds and ends) try the following:

    Code:
    FriendFoeManager,
    ServerLogView, 
    LogDisplay,
    ClientLogView, 
    FileBrowser, 
    BookmarksManager,
    UserVolumeWidget,
    EmoticonsDisplay,
    QDialog#BanDialog,
    QWidget#ConnectionInfoDialog,
    QWidget#UrlCatcherViewer,
    QWidget#ServerConnectionInfoDialog,
    QWidget#ServerQueryView,
    QWidget#addPropertiesWidget,
    QWidget#OfflineMessagesDialog,
    QWidget#sound3Dwidget,
    QWidget#sound3DTestWidget,
    QWidget#CustomizeToolbar,
    QWidget#PermissionsWidget,
    ImprovedWidget#WebServerList,
    ImprovedWidget#ChannelGroupsOfClientDialog,
    ClientDatabaseListViewer, 
    TokenView, 
    InvitationDialog, 
    WhisperDialog, 
    WhisperHistoryWidget, 
    FileTransferView,
    BanList
    {
    	background: #??????;
    }
    Set the background to the color of your choosing. All the listed elements will inherit this value.

    Now - does anyone happen to know the classname or proper syntax to apply coloring to the Compose Offline Message Dialog? It's literally the last element that gives me ghosting issues.

  5. #5
    Join Date
    Sep 2012
    Posts
    3,129
    Code:
    /* Compose Offline Message Dialog */
    
    OfflineMessagesNew {
    	background: blue;
    }
    
    OfflineMessagesNew QLineEdit {
    	color: white;
    	background: lime;
    }
    
    OfflineMessagesNew QListView {
    	color: red;
    	background: yellow;
    }
    
    OfflineMessagesNew QTextEdit {
    	color: white;
    	background: brown;
    }
    
    OfflineMessagesNew QLabel {
    	color: white;
    	background: purple;
    }
    
    OfflineMessagesNew QPushButton {
    	color: white;
    	background: green;
    }
    
    OfflineMessagesNew QSplitterHandle {
    	background: #9b9b9b;
    }
    
    OfflineMessagesNew QWidget#scrollAreaWidgetContents {
    	background: #00feFF;
    }
    
    OfflineMessagesNew QScrollBar {
    	background: magenta;
    }
    StyleSheetHelper Hotkey is really really helpful for this kind of stuff
    Don't try those color codes though... looks ugly... had to think of some colors real quick
    Last edited by Chris; 07-02-2013 at 08:00.

  6. #6
    Join Date
    Jan 2013
    Posts
    3
    You are my hero!

    I appreciate the help. (yes those are some ugly color-combos!)

    Now to get 'er done! =)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. issues
    By jeff-m in forum Windows
    Replies: 0
    Last Post: 29-07-2011, 13:48
  2. Replies: 9
    Last Post: 10-02-2010, 16:51
  3. Help Skinning QWidget and sub command
    By The-Angelus in forum Skins
    Replies: 2
    Last Post: 28-12-2009, 14:32
  4. A8N-SLI and MIC issues
    By Isengrim in forum [TeamSpeak 2] Client Support
    Replies: 4
    Last Post: 16-08-2005, 22:09
  5. Issues
    By MistrOrnge in forum [TeamSpeak 2] Client Support
    Replies: 1
    Last Post: 30-01-2005, 21:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •