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. Align QMenu icon and text with respect to list widget Item

Align QMenu icon and text with respect to list widget Item

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 425 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 Offline
    S Offline
    Sougata1996
    wrote on last edited by
    #1

    I have two items in a list widget. The first one is a normal ListWidgetItem , the second one is a QMenu . As you can see in the image the QMenu is not aligned with the QListWidgetItem . How do i align the QMenu icon and text to look same as the list widget Item ?

    Screenshot 2020-08-15 at 4.33.44 PM.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sougata1996
      wrote on last edited by
      #2

      I tried the other way too , i.e. moving the icon and text of QListWidgetItem a bit to the left so that it aligns with QMenu, but wasn't able to do it . My end goal is to somehow align the two items .
      Interestingly i am noticing this problem in MAC . In windows the UI looks fine . In windows the list widget item is shifted to the left to align with QMenu .

      Screenshot 2020-08-15 at 6.30.28 PM.png

      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