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. QProgressDialog Set fixet location.
Forum Updated to NodeBB v4.3 + New Features

QProgressDialog Set fixet location.

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 178 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.
  • mangekoyuM Offline
    mangekoyuM Offline
    mangekoyu
    wrote on last edited by
    #1

    I need users should not be able to drag progressdialog on screen. It should be fixed location on center of window. How can I disable dragging from whrn click and hold on title bar?

    Here is my code

          QProgressDialog progress(  "Progressing", "Cancel", 0, 999999, this) ;
     progress.setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint);
         progress.setWindowModality(Qt::WindowModal );
             setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
    
    jsulmJ 1 Reply Last reply
    0
    • mangekoyuM mangekoyu

      I need users should not be able to drag progressdialog on screen. It should be fixed location on center of window. How can I disable dragging from whrn click and hold on title bar?

      Here is my code

            QProgressDialog progress(  "Progressing", "Cancel", 0, 999999, this) ;
       progress.setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint);
           progress.setWindowModality(Qt::WindowModal );
               setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
      
      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @mangekoyu Set also Qt::FramelessWindowHint

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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