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. QPushButton move icon to left and center text with paintEvent(...)

QPushButton move icon to left and center text with paintEvent(...)

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

    Hello, I am interested can I move a QPushButton icon to the left of the button while preserving the text centered in overriding the paintEvent(QPaintEvent*) method? I could not find any good example of doing so? If that is not possible, shall I just derive a QWidget ?

    Regards.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      Hi! As you've marked the thread as solved it would be nice if you could share your solution with the other users :)

      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