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. QTableWidgetItem ... The size of the icon ..
Qt 6.11 is out! See what's new in the release blog

QTableWidgetItem ... The size of the icon ..

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k 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.
  • C Offline
    C Offline
    cyber37
    wrote on last edited by
    #1

    Hi boy's i am very frustred, i think there is no solution for that but i try to ask ...
    I do many schearches on google, i have try to "strech" row, it doesn't do nothing

    So for explain my problem i start by puting a screen of my app :

    !http://img15.hostingpics.net/pics/410872Capturedu20140205153827.png(my app)!

    I have a label in font who contains the picture with the MAP,
    I have also a QTableWidgetItem usef for colorise the map for make "zones" on the map.

    the problem is : With QTableWidgetItem when you do "SetIcon" the item contain the icon but he have also an espace on the left ...
    you can see it beter on that screen :

    !http://img11.hostingpics.net/pics/657030Capturedu20140205183908.png(gfg)!

    You can see that before the icon there is a "blank" espace ...
    I have set the icon size property i try to expend the size, i also try to expend the size of a row .. the item always contain that blank space ... My icons are 22x22 size ...

    I have also try to use Grid Layouts, it was good (i had not this probem but i had other problems ...), but someone tell me to use QTableWidgetItem in the #qt irc channel ..

    Now i post here because i want to know if exist a technic for remove it .. or not ?
    If not, what would be better for me to use for make my app ?

    thanks for help ..

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      I'd just set the background color instead of abusing an icon to fill a square.

      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