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. [Solved] QMenuBar hover or click clears QStatusBar messages
Forum Updated to NodeBB v4.3 + New Features

[Solved] QMenuBar hover or click clears QStatusBar messages

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.7k 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
    steph0815
    wrote on last edited by
    #1

    Hello,

    my problem is that everytime I hover the menubar or click a element of it the message in the statusbar is cleared. I cannot find another way than catching the hover/click event of the menubar and rewriting the statusbar message. Hope someone knows a easier way!

    greetz
    steph0815

    greetz
    Stephan

    1 Reply Last reply
    0
    • N Offline
      N Offline
      ngrosjean
      wrote on last edited by
      #2

      Hello,

      A workaround could be done by inserting a QLabel as widget or permanet widget on Status Bar.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        normal widgets in the status bar are overlayed by the temporary messages. permanent widgets are on the right side....

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          steph0815
          wrote on last edited by
          #4

          hey,

          didnt had the time the last days, so sorry for the late answer. I solved my problem. The statusbar slot void showMessage ( const QString & message, int timeout = 0 ) is not to display permanent messages only for temporary messages!!! Therefore u need to insert a widget on the status bar. Now its working fine!

          THX

          greetz
          Stephan

          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