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. QMenu incorrect setting of palette
Forum Updated to NodeBB v4.3 + New Features

QMenu incorrect setting of palette

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

    Hi I'll create a bug report for this if no one can think of a solution.
    I am creating a QMenu shortly before i create this menu i call qApp->setPalette(palette); Changing all the colors (part of the brief is for this app to look nothing like a desktop app its for embedded linux, I am also unable to use stylesheets due to constraints placed on me.)
    Under Windows and Embedded Linux (Freescale for ARM) the colors of the QMenu are the colors i'd expect under my linux system the colors remain the same as my system colors. If i call setPalette(qapp->palette); on the QMenu the text color changes however others remain the same.
    I have also tried setting the application and menu style to windowsxp and this did nothing. It would be ideal if all 3 have the same behavior as the Linux and Windows versions are just a emulator for the Embedded Linux version
    Qt 4.7.1 running a 32 bit application on a 64 bit Ubuntu 10.10 machine running Gnome.
    Does anyone else have any ideas?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SimonL
      wrote on last edited by
      #2

      I've found a work around this seems to be linked to styles while i wouldn't mark this as a solution it will work for me. I have set my application's style to plastique this seems to give the ability to set all the colors correctly and will work in my case. I am still open to better ideas.

      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