Forum

Results 1 to 6 of 6

Thread: Qwidget issues

  1. #1
    Join Date
    October 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; October 21st, 2011 at 09:48 PM.

  2. #2
    Join Date
    March 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
    August 2009
    Location
    Germany
    Posts
    53
    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
    January 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
    September 2012
    Posts
    6,076
    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; February 7th, 2013 at 08:00 AM.

  6. #6
    Join Date
    January 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. QApplication & QWidget in the Plugin crashes
    By Honc__ in forum Client Plugins / Lua Scripts
    Replies: 9
    Last Post: February 10th, 2010, 04:51 PM
  2. Help Skinning QWidget and sub command
    By The-Angelus in forum Skins / Icon & Sound Packs
    Replies: 2
    Last Post: December 28th, 2009, 02:32 PM

Posting Permissions

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