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. scrollbar in qStylesheet
QtWS25 Last Chance

scrollbar in qStylesheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 703 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.
  • H Offline
    H Offline
    hjohn
    wrote on last edited by
    #1

    what is Url means in it?
    how can i access it ?

    QSizeGrip {
        image: url(:/images/sizegrip.png);
        width: 16px;
        height: 16px;
    }
    
    JonBJ 1 Reply Last reply
    0
    • H hjohn

      what is Url means in it?
      how can i access it ?

      QSizeGrip {
          image: url(:/images/sizegrip.png);
          width: 16px;
          height: 16px;
      }
      
      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @hjohn
      Don't know what you mean by "how can i access it". The line:

          image: url(:/images/sizegrip.png);
      

      means that a QSizeGrip will simply be given an image, where that image is in file /images/sizegrip.png, relative to where your code is running (I think). You don't "do" anything with it. You could change that path if you wanted to use some other image for the sizegrip.

      H 1 Reply Last reply
      0
      • JonBJ JonB

        @hjohn
        Don't know what you mean by "how can i access it". The line:

            image: url(:/images/sizegrip.png);
        

        means that a QSizeGrip will simply be given an image, where that image is in file /images/sizegrip.png, relative to where your code is running (I think). You don't "do" anything with it. You could change that path if you wanted to use some other image for the sizegrip.

        H Offline
        H Offline
        hjohn
        wrote on last edited by
        #3

        @JonB Can i set my drive's path.or I have to add image in QT project.

        JonBJ 1 Reply Last reply
        0
        • H hjohn

          @JonB Can i set my drive's path.or I have to add image in QT project.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @hjohn
          You can probably have an absolute path with something like url(file://C/path/images/sizegrip.png). But this is not my area. You'll have to look up the syntax of that Qt url(), or wait for someone else to answer.

          H 1 Reply Last reply
          1
          • JonBJ JonB

            @hjohn
            You can probably have an absolute path with something like url(file://C/path/images/sizegrip.png). But this is not my area. You'll have to look up the syntax of that Qt url(), or wait for someone else to answer.

            H Offline
            H Offline
            hjohn
            wrote on last edited by hjohn
            #5

            @JonB I just added image in resources and its done.

            1 Reply Last reply
            1

            • Login

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