Navigation

    Qt Forum

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

    • UNSOLVED qcombobox drop-down list appears separately(QMDIArea and QMDISubwindow)
      General and Desktop • qcombobox qmdisubwindow qmdiarea qt5.14.2 • • sayan275  

      16
      0
      Votes
      16
      Posts
      91
      Views

      @Pl45m4 I'll try this...changing it's position
    • UNSOLVED Styling the QMdiArea using the the fusion style and QPalette (dark theme)
      General and Desktop • qstyle qmdisubwindow qstylesheet qpallete fusion • • Gbhutra  

      3
      0
      Votes
      3
      Posts
      324
      Views

      @Gojir4 said in Styling the QMdiArea using the the fusion style and QPalette (dark theme): darkPalette.setColor(QPalette::Disabled, QPalette::Shadow, QColor(r, g, b)); (Edited) tried, but it didn't work. I suspect that underneath it's a QLabel with a raised text but I don't know how to set the color of those using QPalette
    • UNSOLVED MdiSubwindows when minimized and restored don't have same position.
      General and Desktop • qmdisubwindow qmdiarea minimize • • MasterBLB  

      7
      0
      Votes
      7
      Posts
      326
      Views

      That geometryRectangle is irrelevant, as it is used only for the widget with 2 large, red close buttons which is positioned correctly. What I observed via debugging/logging is that code part: if (isMinimized()) { //emit minimizeAddNewEquipmentDialog(); addEquipmentDialog->showMinimized();//that's 2nd widget } somehow spoils behavior of the widget, if I recall correctly after manual, separate minimizing call showNormal() simultaneously worked fine for both widgets. Need to confirm that after work, though.
    • SOLVED I can not show with button click a subWindow(ui) created in ui QMdiArea.
      General and Desktop • qmdisubwindow qmdiarea • • Halil Satilusagi  

      10
      0
      Votes
      10
      Posts
      762
      Views

      That's usually applied to dialogs. Is that what you were using ?
    • SOLVED qmdiarea tabbed subwindows
      General and Desktop • qmdisubwindow qmdiarea • • user4592357  

      8
      0
      Votes
      8
      Posts
      1356
      Views

      @SGaist exactly, thanks!
    • SOLVED Prevent QMdiArea's current subwindow switching
      General and Desktop • qmdisubwindow qmdiarea • • diverger  

      5
      0
      Votes
      5
      Posts
      624
      Views

      I finally use event filter to filter the "user click on tab" event to achieved my goal.
    • SOLVED QMdiSubwindow deleted twice in singleton destructor
      General and Desktop • qmdisubwindow qmdiarea • • Shadowigor  

      5
      0
      Votes
      5
      Posts
      1255
      Views

      I got it working! You were right, after some more testing, it turned out, that my class was deleted after QApplication was already deleted. That's what I'm using now: // shared_window.h #ifndef SHARED_WINDOW_H #define SHARED_WINDOW_H #include <QObject> #include <QMdiArea> #include <QMdiSubWindow> #include <QMainWindow> class ROBOTCORE_EXPORT SharedWindow : public QObject { Q_OBJECT // Singleton Q_DISABLE_COPY(SharedWindow) public: ~SharedWindow(); static SharedWindow *instance(void); private: QMdiArea *mdi; static SharedWindow *inst; QMainWindow *wnd; // Singleton SharedWindow(); private slots: void cleanup(void); }; #endif // SHARED_WINDOW_H // shared_window.cpp #include "shared_window.h" SharedWindow *SharedWindow::inst = nullptr; SharedWindow::SharedWindow() { this->wnd = new QMainWindow(); this->mdi = new QMdiArea(); this->wnd->setCentralWidget(this->mdi); this->mdi->addSubWindow(new QSlider()); this->wnd->show(); } void SharedWindow::cleanup() { delete this->wnd; } SharedWindow::~SharedWindow() { } SharedWindow *SharedWindow::instance() { if(SharedWindow::inst == nullptr) { SharedWindow::inst = new SharedWindow(); // Setting qApp as the parent won't do it, don't know why connect(QApplication::instance(), &QApplication::aboutToQuit, SharedWindow::inst, &SharedWindow::cleanup); } return SharedWindow::inst; } I couldn't delete it from the main application, because I have no control over the main application. Also, my shared window is only used by some specific plugins and isn't part of the main project. The main application has a window of it's own. Thanks!
    • UNSOLVED QMdiSubWindow in Windows 10
      General and Desktop • qmdisubwindow styling win10 • • asti56  

      3
      0
      Votes
      3
      Posts
      1110
      Views

      Thanks for the info. Well i have tried to port the programm to use regular QMainWindows. But then i have issues to handle the maximum, minimum controls and to constrain the maximized window to my own mdiarea. Any advice?
    • Set tool tip for title bar only in QMdiSubWindow
      General and Desktop • qmdisubwindow • • fscibilia  

      1
      0
      Votes
      1
      Posts
      337
      Views

      No one has replied

    • QMdiSubWindow with transparency and opacity
      General and Desktop • css transparency qmdisubwindow qmdiarea opacity • • scastiello  

      6
      0
      Votes
      6
      Posts
      2662
      Views

      Yes of course