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. add icon to the right side of the text rather than on the left one
Forum Updated to NodeBB v4.3 + New Features

add icon to the right side of the text rather than on the left one

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 933 Views 2 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.
  • U Offline
    U Offline
    user4592357
    wrote on last edited by
    #1

    my question refers to QActions. by default, when an icon is specified for QAction, and Qt::ToolButtonTextBesideIcon is specified, the icon appears to the left of the action. how can i make it appear to the right of the action's text?

    ? 1 Reply Last reply
    0
    • U user4592357

      my question refers to QActions. by default, when an icon is specified for QAction, and Qt::ToolButtonTextBesideIcon is specified, the icon appears to the left of the action. how can i make it appear to the right of the action's text?

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @user4592357 said in add icon to the right side of the text rather than on the left one:

      how can i make it appear to the right of the action's text?

      Hi! You can't, it's not supported. If you really need this, you must patch QMenu (see qmenu.cpp as a starting point).

      1 Reply Last reply
      2

      • Login

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