Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with styleSheet
Forum Update on Monday, May 27th 2025

Problem with styleSheet

Scheduled Pinned Locked Moved Solved General and Desktop
stylesheetmusic
22 Posts 3 Posters 9.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S shahriar25

    Hi,
    I can't Thank you enough for the answers. I did it!

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #13

    @shahriar25
    \o/ super :)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shahriar25
      wrote on last edited by
      #14

      I have one more Question:
      I want the listview to show "Goto File->Add To List to add files"
      or a background text for the labels saying "Album" when its empty
      How shold I do that?

      mrjjM 1 Reply Last reply
      0
      • S shahriar25

        I have one more Question:
        I want the listview to show "Goto File->Add To List to add files"
        or a background text for the labels saying "Album" when its empty
        How shold I do that?

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #15

        @shahriar25 said:
        well for the list view, you could have a start item saying that.
        And then you then add thr real items, then remove it first.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shahriar25
          wrote on last edited by
          #16

          Yes that works but if I wanted it tobe in the middle if the listView than what?
          and for the QLabel?

          mrjjM 1 Reply Last reply
          0
          • S shahriar25

            Yes that works but if I wanted it tobe in the middle if the listView than what?
            and for the QLabel?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #17

            @shahriar25
            Well im not sure if you can make
            it go to middle of the view.

            Well for the QLabel, you can just set the text?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              shahriar25
              wrote on last edited by
              #18

              Yes I can but does it look good?
              alright I will leave it empty.
              thank you again

              mrjjM 1 Reply Last reply
              0
              • S shahriar25

                Yes I can but does it look good?
                alright I will leave it empty.
                thank you again

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #19

                @shahriar25
                well QLabel can show html so it can look pretty much as you like
                http://doc.qt.io/qt-5.5/richtext-html-subset.html
                Color and font wise.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shahriar25
                  wrote on last edited by
                  #20

                  I did it with rich text

                  mrjjM 1 Reply Last reply
                  0
                  • S shahriar25

                    I did it with rich text

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #21

                    @shahriar25
                    So it turned out as you like?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      shahriar25
                      wrote on last edited by
                      #22

                      Yes it did

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved