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. Java qtjambi-4.5.2 WindowFlags

Java qtjambi-4.5.2 WindowFlags

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 462 Views 2 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.
  • D Offline
    D Offline
    David Krupi
    wrote on last edited by
    #1

    Hi can someone help me with WindowFlags? I am using qtjambi-4.5.2 and I really can't figure out how to do it in Java.
    Basically, I need '?' mark disappear from the window, I guess it's Qt.WindowContextHelpButtonHint. But I have a real trouble to find correct syntax.

    Best regards
    David

    mrjjM 1 Reply Last reply
    0
    • D David Krupi

      Hi can someone help me with WindowFlags? I am using qtjambi-4.5.2 and I really can't figure out how to do it in Java.
      Basically, I need '?' mark disappear from the window, I guess it's Qt.WindowContextHelpButtonHint. But I have a real trouble to find correct syntax.

      Best regards
      David

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      @David-Krupi said in Java qtjambi-4.5.2 WindowFlags:

      WindowContextHelpButtonHint

      Hi
      in c++ , it would be

      setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);

      a more step by step would be

      Qt::WindowFlags flags = windowFlags(); // get current flags

      Qt::WindowFlags helpFlag =Qt::WindowContextHelpButtonHint; // just variable. not really needed.

      flags = flags & (~helpFlag); // here we AND + NOT (negate) the flag out. we do this to keep any other values already set

      now set it back
      setWindowFlags(flags);

      I hope syntax for bit function is the same in java :)

      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