Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8550135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:52:55+00:00 2026-06-11T13:52:55+00:00

I have been working on a Qt application for some time now, and after

  • 0

I have been working on a Qt application for some time now, and after rewriting a lot of the code, I wanted to give the GUI a lift. So I was looking at GUI designs, and noticed most use images instead of native buttons/scroll bars/etc.

My main question is how I could take a native widget, say a push button, and display an image of a push button that has all the functionality of a push button (animated click, signals, slots, etc.). I have seen QML and other ways to do this, but I haven’t found a way to do this using regular C++ and Qt.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:52:57+00:00Added an answer on June 11, 2026 at 1:52 pm

    The simplest way is to use the palette and/or stylesheets to get the appearance you want, or at least close to what you want. That is the way I’d recommend for most uses, honestly.

    For buttons, you can do something by inhering from QAbstractButton and having your own images you draw for all the various states. You’d need to figure out the states you want to support, and when to draw them (look at the options passed to paintEvent, for example). This is a little more difficult, but code-wise is fairly simple. Your main problems with this option are generating the images, and that the result is fragile for resizing — that is, basically, don’t allow those buttons to resize. The other drawback is that you would have to do something similar for every widget you want to style, and many of them aren’t nearly as simple as buttons.

    To go all the way, you can look at QStyle, and how the various styles are implemented. Using those, you can really make any widget appear just how you want it to appear (within the constraints of the size it is drawn in). This is the hardest option by far to understand what to do, and what the options are. Also, the last time I looked, many of the options aren’t incredibly well documented for what they do in specific cases, so when I had to make some changes this way it was very much a matter of trial and error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one web application which I have been working for some time.I am
I have been working with Google-bigquery and JavaScript for a little time now, after
I've been working with C# and .NET for quite some time now, but am
I've been trying to get this working for some time now. I've seen the
I have written a GUI application which after performing some analyses on a large
So, i've been working for some time at a phonegap+jqm application. I've been testing
I have been using Selenium (WebDriver) for some time now, utilising Microsoft Team Foundation
I have been working on this application that enables user to log in into
I have been working with iPhone application in which i am using sqlite database.
I have been working on an application which allows the user to make a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.