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. Prevent QDialog/QWidget from moving - bool QWidget::nativeEvent

Prevent QDialog/QWidget from moving - bool QWidget::nativeEvent

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 138 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.
  • H Offline
    H Offline
    hbatalha
    wrote on last edited by hbatalha
    #1

    I want to know how I can prevent a window from being moved around using the titlebar.
    I know I can set the flag to Qt::FramelessWindowHint but I need to have the titlebar.

    Someone is this topic claimed he did it using bool nativeEvent(const QByteArray &eventType, void *message, long *result) but never shared how he exactly he did that.

    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