Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QTabWidget Stylesheet problemme

    General and Desktop
    2
    2
    543
    Loading More Posts
    • 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.
    • K
      kamelEddine last edited by

      Hello,I used Stylesheet to modified tab ,the problem is that i want to set icon in the middle of tab tittle ,and the text under the icon,i don't now how ,i use QT Designer and c++ code .
      another Question ,in window of "Edit style Sheet " i can set icon ? if yes how?

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        hi and welcome
        To use images/icons in stylesheets,
        You must add a resource file to the project and then add the images(s) to this
        resource file.
        Then in StyleSHeet editor you can select them and use where images are valid.

        http://www.bogotobogo.com/Qt/Qt5_Resource_Files.php
        Note! in example he adds a .pro file. Here you would add the images(s)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post