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. QTabWidget Stylesheet problemme
Qt 6.11 is out! See what's new in the release blog

QTabWidget Stylesheet problemme

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 895 Views 1 Watching
  • 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 Offline
    K Offline
    kamelEddine
    wrote on last edited by
    #1

    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
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0

      • Login

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