Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qwindow
    Log in to post

    • UNSOLVED QWindow on a non-GUI thread
      General and Desktop • opengl qwindow threaded • • rtavakko  

      5
      0
      Votes
      5
      Posts
      72
      Views

      @SGaist Thanks! I will play around with that example
    • SOLVED [SOLVED] mousePressEvent in QtQuickView
      QML and Qt Quick • event qwindow qquickview mousepressevent qquickwindow • • madoodia  

      13
      0
      Votes
      13
      Posts
      98
      Views

      The problem is solved please check this https://forum.qt.io/topic/113640/solved-why-q-window-events-are-eaten-by-qml-item thanks
    • UNSOLVED QWindow - openGL implementation, painter not paiting?
      General and Desktop • opengl qwindow • • Dariusz  

      4
      0
      Votes
      4
      Posts
      337
      Views

      Hi Hmm, nope. it looks very much like the sample with some code from TriangleWindow::initialize() in the render() function.
    • SOLVED Remember window size before maximization (or Detect if QResizeEvent is maximization)
      General and Desktop • qwindow qresizeevent maximize maximized • • Arthur Araruna  

      5
      0
      Votes
      5
      Posts
      1354
      Views

      @marcbf said in Remember window size before maximization (or Detect if QResizeEvent is maximization): int w = currentSize.width(); int h = currentSize.height(); if (restoresize) { w = qMax(settings["Width"].Value(0), w); h = qMax(settings["Height"].Value(0), h); } Man, this is the deal!!! Everything worked perfectly after I fine tuned your code to my context! Thank you very much. The trick was really to use normalGeometry and windowState, so these two are the answer to my question.
    • Embedding window inside Illustrator panel does not load 3D model on Mac
      General and Desktop • qmainwindow qwindow embed qmacnativewidge • • Poorti  

      3
      0
      Votes
      3
      Posts
      931
      Views

      @mrjj Thanks for the reply! I followed your advice and tried setting the panelWindow as the parent... No change.. Any other ideas? I followed this link, http://doc.qt.io/qt-5/qmacnativewidget.html#details
    • Unable to paint on Qt Widget, shows error “paintEngine: Should no longer be called”
      General and Desktop • qt5.5 qwidget qpainter qwindow scribbling • • beginMyCoding  

      14
      0
      Votes
      14
      Posts
      21128
      Views

      @mrjj yeah!! its working bro if i remove label.. Thank you all for your suggestions
    • UNSOLVED How to make QMenuBar focused
      General and Desktop • focus qwindow qmenubar • • pmendl  

      6
      0
      Votes
      6
      Posts
      2039
      Views

      @pmendl No problem. Do bear in mind that if you decide to send the event with QApplication::sendEvent, you are responsible for the event object's deletion, so it's a good idea to create it on the stack in that case. Good luck! Kind regards.
    • SOLVED Twice QPainter on same QWindow causes crash
      General and Desktop • qpainter crash qwindow • • Harry123  

      5
      0
      Votes
      5
      Posts
      1426
      Views

      It's not very well exposed, but this is actually documented in QPainter::begin(): Warning: A paint device can only be painted by one painter at a time.
    • is showMaximized() guaranteed to show the window?
      General and Desktop • qwidget qwindow • • ravas  

      3
      0
      Votes
      3
      Posts
      1507
      Views

      @Wieland Thanks for the help and the link. Do you know any desktop environment where showMaximized doesn't work? No I do not. I'm contributing to an open source project so I want to be sure.
    • UNSOLVED QT & raw OpenGL with glew not working
      General and Desktop • opengl qwindow glew • • Row_Rebel  

      9
      0
      Votes
      9
      Posts
      4678
      Views

      @SGaist Ok I guess i'll open a different question for this issue, thanks anyway for your help
    • UNSOLVED [solved]Testing ApplicationWindow.visibility enum values?
      QML and Qt Quick • qwindow • • A Former User  

      3
      0
      Votes
      3
      Posts
      822
      Views

      @p3c0 Hey thanks! Works as expected. Another baby step on the road to writing more interesting bugs. . . ;-)
    • Mac dead keys and QInputMethodEvent
      General and Desktop • qwidget mac os qwindow qinputmethodeve dead keys • • woolfman007  

      2
      0
      Votes
      2
      Posts
      886
      Views

      Hi, You could try with an eventFilter and handle QEvent::InputMethod in there Hope it helps
    • Embedded QWindow in Fullsreen mode
      General and Desktop • qwindow • • PhlipVR  

      4
      0
      Votes
      4
      Posts
      805
      Views

      Can you try to first go full screen and only then create the embedded QWindow ?
    • An transparent ellipse on OpenGLSurface is not draw correctly
      Mobile and Embedded • android qwindow opengl es2.0 • • Tank2005  

      1
      0
      Votes
      1
      Posts
      407
      Views

      No one has replied

    • synchronize two QabstractItemModel on Single Common Column
      General and Desktop • qwidget qtableview qabstractitemmo qheaderview qwindow sorting custom item • • Zee_07  

      1
      0
      Votes
      1
      Posts
      493
      Views

      No one has replied

    • get Gestures in QWindow
      General and Desktop • qwindow gestures • • Xv1nX  

      10
      0
      Votes
      10
      Posts
      3063
      Views

      I found out the solution using native Windows Gestures WM_Gesture. By default QT registers QMainWindow-Window as a Touch Window, so the QMainWindow-App only get WM_Touch events. As said above one can only get either WM_Touch event or WM_Gesture event. So you have to unregister the window from getting Touch event. I do that in the constructor like this: HWND myHwnd = reinterpret_cast<HWND>(this->winId()); PULONG flag = 0; bool istouch = IsTouchWindow(myHwnd,flag); if(istouch) UnregisterTouchWindow(myHwnd); now i get WM_Gesture events in nativeEvent: bool OpenGLWindow::nativeEvent(const QByteArray & eventType, void* message, long* result) { MSG* msg = reinterpret_cast<MSG*>(message); switch(msg->message){ case WM_GESTURE: case WM_GESTURENOTIFY: emit sendNativeEvent(eventType, message, result); break; } return false; } Thanks for your help.
    • In Qt 5, what's the right way to show multi-monitor full screen QWidget windows?
      General and Desktop • qwidget qwindow fullscreen qscreen • • tedmiddleton  

      2
      0
      Votes
      2
      Posts
      1801
      Views

      Hi, Sounds like you may have found a regression. You should take a look at the bug report system to see if it's something known. If not please consider opening a new report providing a minimal compilable example showing the behavior
    • QWindow as a parent of QDialog?
      General and Desktop • qdialog qwindow • • xylosper  

      6
      0
      Votes
      6
      Posts
      4017
      Views

      There is a static function of QWidget that will create a container widget with a QWindow as a parent. QWidget* QWidget::createWindowContainer(QWindow *,...) Once you have the widget container this can be the parent of any other dialogs or widgets you need to add.