Results 1 to 2 of 2

Thread: A puzzle about the "embeddeddialogs" example

  1. #1
    Join Date
    Dec 2016
    Posts
    8
    Qt products
    Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Android

    Default A puzzle about the "embeddeddialogs" example

    I want to set the small windows without window title bar in the embeddeddialogs example , so I add setWindowFlags(Qt::FramelessWindowHint) in the CustomProxy's construct function.

    The windows then shows without window title bar, but another problem comes : the windows CAN NOT show in front of its nearby windows any move when mouse moving over it , but always zooming behind them.

    Why does this happen?

    CustomProxy::CustomProxy(QGraphicsItem *parent, Qt::WindowFlags wFlags)
    : QGraphicsProxyWidget(parent, wFlags), popupShown(false), currentPopup(0)
    {
    timeLine = new QTimeLine(250, this);
    connect(timeLine, SIGNAL(valueChanged(qreal)),
    this, SLOT(updateStep(qreal)));
    connect(timeLine, SIGNAL(stateChanged(QTimeLine::State)),
    this, SLOT(stateChanged(QTimeLine::State)));

    this->setWindowFlags(Qt::FramelessWindowHint); // Added
    }

  2. #2
    Join Date
    Dec 2016
    Posts
    8
    Qt products
    Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Android

    Default Re: A puzzle about the "embeddeddialogs" example

    chang with: this->setWindowFlags( Qt::Window|Qt::FramelessWindowHint);

    will be ok

Similar Threads

  1. Replies: 1
    Last Post: 20th November 2015, 11:02
  2. QSqlError("", "Parameter count mismatch", "")
    By Alberto7 in forum Newbie
    Replies: 2
    Last Post: 9th October 2015, 23:09
  3. Replies: 3
    Last Post: 16th March 2015, 08:31
  4. Replies: 3
    Last Post: 15th February 2010, 18:27
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.