Skip to content
  • Change edges of QWidget

    Unsolved General and Desktop qwidget qpushbutton widget styesheet general problem
    3
    0 Votes
    3 Posts
    91 Views
    Pl45m4P
    @Joe-von-Habsburg The bottom one is easy. Just subclass QPushButton, implement your own paintEvent and draw a circle that matches your specs. Done. For the top button, the "WiFi"/intensity button thing: [1] Either make a widget that internally holds three QPushButton widgets shaped in the way you need (also by implementing paintEvent) OR [2] you create your own button class that defines and draws these three areas and performs click-checks on them to emit your own signal depending on which section was clicked. Something like void IntensityButton::clicked(int intensity) where you pass 0, 1 or 2 or maybe even some enum class values (LOW, MEDIUM, HIGH) with your signal. The faster and simpler way is [1], [2] might take a little more effort to implement properly, but is more versatile and can be used in many ways to customize your widget even more. Personally, I would opt for approach [2].
  • 0 Votes
    2 Posts
    265 Views
    JonBJ
    @poggers What do you mean by this "separate window"? Are you talking about the popup, see dateEditEnabled, also Using a Pop-up Calendar Widget? Or something else?
  • 0 Votes
    6 Posts
    3k Views
    M
    Okay, maybe its my fault. I'v solved this one simply: first time I used a Qt for x64 system architect, 'cause my OS is x64 and I had previously described trouble; at last time I installed Qt for x86 system and set new kit config for my project, previous kit was saved, but didn't work again. Fortunately new kit configs work well. The main cause of my trouble is using GNU ARM Toolchain for x86 system (I think so, but I'm not sure completely that I use x86 toolchain) - this one is the default build that simple user can install from official ppa-sources