dialog

How to hide titlebar of the QDialog window? [duplicate]

放肆的年华 提交于 2020-01-26 02:29:59
问题 This question already has answers here : QDialog remove title bar (3 answers) Closed last month . I show a dialog in my qt application on menu action click window is appearing perfectly but I want to hide its title bar as it is just a sub-window inside main window. I tried : this->setWindowFlags(Qt::Window |Qt::FramelessWindowHint); In dialog constructor: ui->setupUi(this); this->setWindowState (Qt::WindowActive); setWindowModality(Qt::ApplicationModal); setAttribute (Qt::WA_DeleteOnClose);

How to correctly specify dialog size in vaadin-flow

為{幸葍}努か 提交于 2020-01-25 10:06:08
问题 Trying to open a dialog from a grid renderer which contain a button. The problem is that the dialog isn't respecting the specified size. I've tried setting the width and height of the dialog but it doesn't affect the DOM element only its childs (which doesn't look as expected) @Override public VerticalLayout createComponent(P item) { // this simply create a VerticalLayout VerticalLayout layout = super.createComponent(item); HorizontalLayout subLayout = new HorizontalLayout(); subLayout

how can i show custom dialog box (when call comes true caller shows caller id like that) when my android application receives notification

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-25 08:13:07
问题 popup message like whats app, caller id like the true caller, I am trying to make the same thing. I tried using a broadcast receiver but I do not know how to show the dialog box when a broadcast receives a notification. a pop-up message like WhatsApp shows when a notification arrives on a phone. 回答1: Set mainactivity as a launcher screen. In the mainactivity before setContentView method calling check if the intent has extra parameters as per your requirement. If yes, then finish the current

How to add scrollbar to my dialog in Angular?

孤街浪徒 提交于 2020-01-25 06:49:07
问题 I am opening a dialog window using the following function: doOutput(){ this.dialog.open(NgxChartsComponent ) ; } And the HTML code of my NgxChartsComponent is: <!-- The chart type goes in here --> <div> This is a visual representation of a line chart</div> <div style="display: inline-block"> <ngx-charts-line-chart [view]="view" [scheme]="colorScheme" [results]="multi" [gradient]="gradient" [xAxis]="showXAxis" [yAxis]="showYAxis" [legend]="showLegend" [showXAxisLabel]="showXAxisLabel"

Alert message is not displaying in alert dialog box?

自古美人都是妖i 提交于 2020-01-25 03:13:45
问题 I want to display the alert dialog box to device screen size. I got the solution through this link How to make an alert dialog fill 90% of screen size? I use the solution given there, it works just fine but my alert message is displaying in very small size. we can't even make out the message in landscape orientation. I have used the following code. AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(R.string.app_description).setPositiveButton( "Ok", new

提升用户体验,你不得不知道的事儿——三种提醒框的微技巧

久未见 提交于 2020-01-24 19:28:51
大家都知道无论是android开发还是其他的开发,用户的体验都是很重要的事儿,下面就android开发中的三种提醒方式,Toast,SnackBar,Dialog做一些细节上的处理,或许能让你的产品更有用户亲和力。 1)Toast Toast是一个轻量级的提醒框,相信各位小伙伴,肯定在平时开发中用到地方堪称最多,使用方式非常简单,简单的一句代码搞定。 1 Toast.makeText(this,"This is a toast...",Toast.LENGTH_SHORT).show(); 使用Toast类的makeText方法,传入三个参数:context,显示的字符串,显示时间,最后再调用show方法。 而简单的这样写,一定会有一个小毛病,当用户多次点击触发这个Toast事件的时候,你一定会恼怒到,这个东西需要很久才可以取消掉,真的是烦,大概就是这样。 可见这样是及其的影响用户体验的,要是可以点击N次,还是只是覆盖显示最后一次的提示就好了,恩,其实这个还是很简单,再加上,我们一个app中肯定有一万个地方会用到Toast,所以不妨写一个专门处理UI的工具类,UIUtil。 1 package com.example.nanchen.dialogtoastsnackbardemo; 2 3 import android.app.ProgressDialog; 4 import

Java multiple selection dialog box

China☆狼群 提交于 2020-01-24 12:29:08
问题 I have a dialog box with a drop down menu like this: Object[] possibilities = {"1", "2", "3", "4"}; ImageIcon icon = new ImageIcon("images/middle.gif"); int i = Integer.parseInt((String)JOptionPane.showInputDialog(pane,"How Many Channels:","Reset Visible Channels", JOptionPane.PLAIN_MESSAGE,icon,possibilities,"1")); The problem is that it only lets you select one option. Instead, I would like for users to be able to select multiple options from a list that is given in the dialog box.

XPages getComponent() doesn't work correctly

╄→гoц情女王★ 提交于 2020-01-24 12:21:10
问题 I have an XPage which uses JQuery dialog and client-side validation to validate the input the user processes. The problem is that when I click Add button client-side validation works, but properties from those fields 'cannot ' be found on server side. When the user clicks 'Open dialog' button the dialog shows up and Here's my button where the magic happens(only one property, just for example): <xp:button id="save_part_btn" value="+Add" style="float:right;"> <xp:eventHandler event="onclick"

XPages getComponent() doesn't work correctly

一笑奈何 提交于 2020-01-24 12:21:07
问题 I have an XPage which uses JQuery dialog and client-side validation to validate the input the user processes. The problem is that when I click Add button client-side validation works, but properties from those fields 'cannot ' be found on server side. When the user clicks 'Open dialog' button the dialog shows up and Here's my button where the magic happens(only one property, just for example): <xp:button id="save_part_btn" value="+Add" style="float:right;"> <xp:eventHandler event="onclick"

Android -showing alert dialog from service when phone is locked

…衆ロ難τιáo~ 提交于 2020-01-24 09:37:07
问题 Showing alert dialog on lock screen from service is my problem. when phone is on unlock state ,it shows nicely. Actually if phone is lock , it will just unlock phone and alert dialog will appears behind lock. Here is my code: Service.java: public static void popupDialog(String sender , String msg) { final String senderName = sender; final String message = msg; Handler h = new Handler(context.getMainLooper()); h.post(new Runnable() { @Override public void run() { KeyguardManager km =