Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. dialog

    Log in to post
    • All categories
    • LorenDB

      Unsolved Conditionally closing a dialog
      QML and Qt Quick • dialog input accept qml override • • LorenDB

      1
      0
      Votes
      1
      Posts
      122
      Views

      No one has replied

    • gde23

      Solved How to close dialog when mouse leaves a QWidget in the mainwindow (but not when it is over the dialog)
      General and Desktop • leaveevent dialog popup • • gde23

      6
      0
      Votes
      6
      Posts
      315
      Views

      gde23

      Thanks for the ideas, I got it working like this now:

      bool myWidget::event(QEvent* e) { if(e->type() == QEvent::Leave) { QPoint view_pos(x(), y()); QPoint view_pos_global = mapToGlobal(view_pos); QPoint mouse_global = QCursor::pos(); if(mouse_global.x() < view_pos_global.x() || mouse_global.x() > view_pos_global.x() + width()) { closeMenu(); } else if(mouse_global.y() < view_pos_global.y() || mouse_global.y() > view_pos_global.y() + height()) { closeMenu(); } } return QWidget::event(e); }
    • D

      Solved TextField selection handles issue
      QML and Qt Quick • virtualkeyboard select all textfield dialog columnlayout • • Deedss

      4
      0
      Votes
      4
      Posts
      432
      Views

      D

      Was able to solve it by outcommenting selectionHandle in the custom keyboard style.qml file.

    • D

      Solved QMessageBox dose not show the content
      General and Desktop • dialog modal dialog event handling messagebox • • dalishi

      12
      0
      Votes
      12
      Posts
      1573
      Views

      J.Hilk

      @jsulm
      actually, it doesn't work at all, from my quick test I made.

      I'm not entirely sure why...

    • Qjay

      Unsolved Button Text not readable
      General and Desktop • qt quick qml qtquick dialog buttons • • Qjay

      6
      0
      Votes
      6
      Posts
      1376
      Views

      Pradeep Kumar

      need to check Qt classes for system settings and native look and feel,
      and of adopting those changes for App.

      Thanks,

    • C

      Unsolved Receive key strokes inside QtQuick.Dialogs 1.2? (How to deal with the focus)
      QML and Qt Quick • focus issue focusscope dialog • • c64zottel

      1
      0
      Votes
      1
      Posts
      408
      Views

      No one has replied

    • E

      Unsolved Window and Dialog unexpected visible behavior
      QML and Qt Quick • visible behavior dialog window unexpected • • eyvx

      2
      0
      Votes
      2
      Posts
      1016
      Views

      E

      No ideas? =(

    • J

      Solved Resize QListWidget
      General and Desktop • qlistwidget resize dialog • • Jedd

      2
      0
      Votes
      2
      Posts
      1604
      Views

      Chris Kawa

      Put the list widget in a layout. Here's more on layouts in Qt.

    • K

      Unsolved Modal from a modal (Mac)
      General and Desktop • mac dialog modal dialog desktop • • KevinD

      5
      0
      Votes
      5
      Posts
      4107
      Views

      kshegunov

      @KevinD said in Modal from a modal (Mac):
      Hi,
      Don't use these two:

      box.setModal(true); box.setWindowFlags(box.windowFlags() | Qt::Popup);

      You're calling QDialog::exec which is for modal-only dialogs, and Qt::Popup isn't for dialogs, leave the window flags be. If you prepare a MWE (the download-and-build type) I can test on Linux (I have no Mac, sorry). Also you might consider filing a bug report if everything else fails.

      Kind regards.

    • R

      Unsolved CheckBox to QInputDialog..?
      General and Desktop • qinputdialog checkbox dialog • • Rohith

      2
      0
      Votes
      2
      Posts
      1341
      Views

      raven-worx

      @Rohith
      no it's not.
      You would have to implement your custom QDialog subclass.
      Which shouldn't be much of an effort.

    • P

      Unsolved C++ find child qml item included from other file
      QML and Qt Quick • qml dialog findchild • • PhTe

      4
      0
      Votes
      4
      Posts
      10619
      Views

      P

      @p3c0 said:

      Cast to QObject instead of QQuickItem.

      That works. :)
      Thanks.

    • G

      Solved Scroll area is smaller than Dialog
      General and Desktop • scrollarea dialog • • gabor53

      4
      0
      Votes
      4
      Posts
      1407
      Views

      G

      I got it. Thank you for your help.

    • G

      Solved Displaying widgets in a second Dialog
      General and Desktop • widget dialog • • gabor53

      5
      0
      Votes
      5
      Posts
      9366
      Views

      G

      Hi @alex_malyu ,
      Thank you for the detailed explanation. It makes more sense now.

    • G

      Solved Displaying Widget in Dialog from code
      General and Desktop • dialog widget • • gabor53

      3
      0
      Votes
      3
      Posts
      955
      Views

      G

      Thank you!!

    • A

      Solved Adding own UI to dialog
      General and Desktop • gui button click dialog • • aney

      12
      0
      Votes
      12
      Posts
      11145
      Views

      mrjj

      @aney
      Yeah when meta compiler doesn't run, it all get a bit strange. :)

      In first post , under it. to the right. is Topic Tools button. It can mark as solved.

    • M

      Unsolved Android soft keyboard action button
      QML and Qt Quick • imeoptions android spinbox dialog • • morte

      5
      1
      Votes
      5
      Posts
      1674
      Views

      A

      Thanks so much for posting this result!
      This worked for me in QT 5.14.2

      @seyed said in Android soft keyboard action button:

      NOTE: Action button of the Android soft keyboard is same as return button which you can control it in XML layout file with 'imeOptions' attribute.

      Can you elaborate on this?

      I'm working on Android and am not seeing the 'Done' button changing as expected, but I do see in the QT Docs:

      Note: Not all of these values are supported on all platforms. For unsupported values the default key is used instead.

    • C

      When ever I run exec() on a Dialog my Application Crashes.
      General and Desktop • dialog exe crashed crashes crash dialog crash • • Coloriez

      7
      0
      Votes
      7
      Posts
      3405
      Views

      A

      @Coloriez

      In header file you probably have:

      class HelpDialog : public QWidget
      {
      Q_OBJECT

      public:
      HelpDialog(QWidget *parent); // this is declaration of the constructor
      ~HelpDialog();
      ....
      ///

      Every function declared and called implicitly or explicitly needs to be implemented.
      Implementation usually is either provided at the same it was declared at or in cpp file,

      For example
      You could replace HelpDialog(QWidget *parent);
      with
      HelpDialog(QWidget *parent) {};

      This would add implementation which does nothing.

      But this would be a bad idea in this case.
      You probably would want constructor which at least initialize parent. For example you could add in cpp file instead:

      HelpDialog::HelpDialog(QWidget *parent)
      :QWidget( parent )
      {
      };

      I highly recommend re-read C++ book until you understand at least the basics or search for c++ novice forum. Your questions have nothing to do with Qt yet. This is not an offence. But I doubt you will be getting help you need here due to specialization of this forum.

    • S

      Dialog Resize not working
      General and Desktop • dialog • • sanx

      1
      0
      Votes
      1
      Posts
      523
      Views

      No one has replied

    • M

      Display a dialog on a specified position
      General and Desktop • dialog paint • • Martin

      2
      0
      Votes
      2
      Posts
      723
      Views

      mrjj

      Hi and welcome

      Do you mean if you can get/use the same "dialog" or more
      like the concept of how to make something pop up like that?