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. QT menu bar not integrating into ubuntu unity title bar
QtWS25 Last Chance

QT menu bar not integrating into ubuntu unity title bar

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 2.0k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 12 Dec 2015, 13:11 last edited by A Former User 12 Dec 2015, 14:39
    #1

    I am writing a basic gui application in QT creator 3.5.1 and I am using QT 5.5. I have downloaded QT/QT creator via their website. I am currently running Ubuntu 15.04 64 bit.

    I am running into an issue regarding the integration of the menu bar into the title bar. The issue being that no integration is happening (the menu bar isn't appearing in the title bar) . The menu bar appears where it would have in the past, below the tile bar. Here is an image of what is happening:

    Picture of menu bar below title bar

    How can I go about resolving this issue and getting the menu bar to display in the title bar? It seems like this is seamless for other applications written before unity started to do this, so I am wondering what I am doing wrong.

    Thanks,

    UPDATE:

    I tried another very simple windowed application. When I complied against the QT version I had installed on my system by default in /usr/lib (version 4.8.6), the integrated menu works. However, when I would compile against against the QT version I downloaded with QT creator into /opt (version 5.5.1) the integrated menu does not work.

    UPDATE 2:

    I installed qt 5.4.1 via apt-get, and qt creator. When I compile against this, my title bar integration works! So the question is, what is different? The people I am developing with are using QT 5.5.1, and I would like to use the same version as them. Is there something I can do differently this time around?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Dec 2015, 22:21 last edited by
      #2

      Hi and welcome to devnet,

      I may be wrong but I'd say Ubuntu patched Qt to integrate their custom UI. One option is to check whether there's a PPA providing Qt 5.5.1

      In any case, AFAIK, that's just a "cosmetic" difference, the behavior should be the same.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      ? 1 Reply Last reply 13 Dec 2015, 22:18
      0
      • S SGaist
        12 Dec 2015, 22:21

        Hi and welcome to devnet,

        I may be wrong but I'd say Ubuntu patched Qt to integrate their custom UI. One option is to check whether there's a PPA providing Qt 5.5.1

        In any case, AFAIK, that's just a "cosmetic" difference, the behavior should be the same.

        ? Offline
        ? Offline
        A Former User
        wrote on 13 Dec 2015, 22:18 last edited by
        #3

        @SGaist I will check if such a ppa exists. Odd that it works in such a way, it seems things made with versions of different GUI frameworks that were built pre title bar integration seem to work just fine.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Dec 2015, 22:42 last edited by
          #4

          That's something to double check with the Ubuntu folks

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          4/4

          13 Dec 2015, 22:42

          • Login

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