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 letting toolbar to be movable in Windows, short question
Forum Updated to NodeBB v4.3 + New Features

Prevent letting toolbar to be movable in Windows, short question

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k 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.
  • A Offline
    A Offline
    amir734jj
    wrote on last edited by
    #1

    Here is my code , I want to prevent letting toolbar to be movable in Windows

    I added this setUnifiedTitleAndToolBarOnMac(true); [in mainwindow.cpp] but it seems doesn't work on windows

    Any idea would be appreciated

    Thanks

    !http://s21.postimg.org/k7nv7nsfb/Untitled.jpg()()!

    Link of my code:

    https://www.dropbox.com/sh/iz82tkn3jb7u26l/fhuC7Ma23x

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Like the function name says, it for Mac.

      How about "this":http://qt-project.org/doc/qt-4.8/qtoolbar.html#movable-prop ?

      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
      • A Offline
        A Offline
        amir734jj
        wrote on last edited by
        #3

        SOLVED THANKS MAN !!!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Your welcome !

          Don't forget to update your thread's title to solved so other forum users will know that it's been solved

          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

          • Login

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