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. Control QMenu/QAction icon location
Forum Updated to NodeBB v4.3 + New Features

Control QMenu/QAction icon location

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

    By default, QMenu and QAction display an item's icon to the left of the text. Is there a way to display the icon to the right of the text? I've tried various style sheet settings, but no luck so far. Any suggestions?

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wibstr
      wrote on last edited by
      #2

      Anyone? Bueller?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rahul Das
        wrote on last edited by
        #3

        I haven't tried, but what happens if you set the alignment of the text to Right?


        Declaration of (Platform) independence.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wibstr
          wrote on last edited by
          #4

          [quote author="Rahul Das" date="1337314090"]I haven't tried, but what happens if you set the alignment of the text to Right?[/quote]

          Good idea, unfortunately it didn't work.

          It seems crazy that this isn't customizable, but I'm thinking I might just have to use QWidgetAction and lay things out myself.

          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