質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Qt

QtはGUIプログラムの開発で広く使われているクロスプラットフォーム開発のフレームワークです。

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

Qt Creator

Qt Creatorは、Qtアプリケーションを開発するための開発統合環境(IDE)です。

Q&A

0回答

754閲覧

全画面にすると周りが黒くなる

退会済みユーザー

退会済みユーザー

総合スコア0

Qt

QtはGUIプログラムの開発で広く使われているクロスプラットフォーム開発のフレームワークです。

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

Qt Creator

Qt Creatorは、Qtアプリケーションを開発するための開発統合環境(IDE)です。

0グッド

1クリップ

投稿2019/07/11 10:58

編集2022/01/12 10:55

qtでリサイズを禁止した状態なのですがその状態で全画面にすると下のように周りが黒くなってしまいます。イメージ説明
黒い部分を適当な色に塗りつぶしたいです。
どのようにすればよいでしょうか。ご指導お願いします。

ui

1<?xml version="1.0" encoding="UTF-8"?> 2<ui version="4.0"> 3 <widget name="__qt_fake_top_level"> 4 <widget class="QSpinBox" name="spinBox_year"> 5 <property name="enabled"> 6 <bool>true</bool> 7 </property> 8 <property name="geometry"> 9 <rect> 10 <x>290</x> 11 <y>50</y> 12 <width>71</width> 13 <height>22</height> 14 </rect> 15 </property> 16 <property name="minimum"> 17 <number>2000</number> 18 </property> 19 <property name="maximum"> 20 <number>9999</number> 21 </property> 22 <property name="value"> 23 <number>2019</number> 24 </property> 25 </widget> 26 <widget class="QLabel" name="label_month"> 27 <property name="geometry"> 28 <rect> 29 <x>436</x> 30 <y>50</y> 31 <width>20</width> 32 <height>21</height> 33 </rect> 34 </property> 35 <property name="text"> 36 <string>月</string> 37 </property> 38 </widget> 39 <widget class="QPushButton" name="forward"> 40 <property name="enabled"> 41 <bool>false</bool> 42 </property> 43 <property name="geometry"> 44 <rect> 45 <x>640</x> 46 <y>100</y> 47 <width>41</width> 48 <height>32</height> 49 </rect> 50 </property> 51 <property name="font"> 52 <font> 53 <weight>50</weight> 54 <italic>false</italic> 55 <bold>false</bold> 56 <underline>false</underline> 57 <strikeout>false</strikeout> 58 <kerning>false</kerning> 59 </font> 60 </property> 61 <property name="mouseTracking"> 62 <bool>false</bool> 63 </property> 64 <property name="focusPolicy"> 65 <enum>Qt::ClickFocus</enum> 66 </property> 67 <property name="layoutDirection"> 68 <enum>Qt::RightToLeft</enum> 69 </property> 70 <property name="text"> 71 <string>></string> 72 </property> 73 <property name="checkable"> 74 <bool>false</bool> 75 </property> 76 <property name="checked"> 77 <bool>false</bool> 78 </property> 79 </widget> 80 <widget class="QLabel" name="label"> 81 <property name="enabled"> 82 <bool>true</bool> 83 </property> 84 <property name="geometry"> 85 <rect> 86 <x>390</x> 87 <y>110</y> 88 <width>59</width> 89 <height>16</height> 90 </rect> 91 </property> 92 <property name="styleSheet"> 93 <string notr="true">color: #777;</string> 94 </property> 95 <property name="text"> 96 <string>今日</string> 97 </property> 98 <property name="alignment"> 99 <set>Qt::AlignCenter</set> 100 </property> 101 </widget> 102 <widget class="QLabel" name="label_year"> 103 <property name="geometry"> 104 <rect> 105 <x>366</x> 106 <y>50</y> 107 <width>20</width> 108 <height>21</height> 109 </rect> 110 </property> 111 <property name="text"> 112 <string>年</string> 113 </property> 114 </widget> 115 <widget class="QLabel" name="label_day"> 116 <property name="geometry"> 117 <rect> 118 <x>509</x> 119 <y>50</y> 120 <width>21</width> 121 <height>21</height> 122 </rect> 123 </property> 124 <property name="text"> 125 <string>日</string> 126 </property> 127 </widget> 128 <widget class="QSpinBox" name="spinBox_month"> 129 <property name="geometry"> 130 <rect> 131 <x>390</x> 132 <y>50</y> 133 <width>42</width> 134 <height>22</height> 135 </rect> 136 </property> 137 <property name="minimum"> 138 <number>1</number> 139 </property> 140 <property name="maximum"> 141 <number>12</number> 142 </property> 143 <property name="value"> 144 <number>7</number> 145 </property> 146 </widget> 147 <widget class="QSpinBox" name="spinBox_day"> 148 <property name="geometry"> 149 <rect> 150 <x>460</x> 151 <y>50</y> 152 <width>42</width> 153 <height>22</height> 154 </rect> 155 </property> 156 <property name="acceptDrops"> 157 <bool>true</bool> 158 </property> 159 <property name="minimum"> 160 <number>1</number> 161 </property> 162 <property name="maximum"> 163 <number>31</number> 164 </property> 165 <property name="value"> 166 <number>30</number> 167 </property> 168 </widget> 169 <widget class="QTextBrowser" name="diary_brouser"> 170 <property name="geometry"> 171 <rect> 172 <x>160</x> 173 <y>140</y> 174 <width>521</width> 175 <height>371</height> 176 </rect> 177 </property> 178 <property name="sizePolicy"> 179 <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> 180 <horstretch>0</horstretch> 181 <verstretch>0</verstretch> 182 </sizepolicy> 183 </property> 184 <property name="cursor" stdset="0"> 185 <cursorShape>IBeamCursor</cursorShape> 186 </property> 187 <property name="layoutDirection"> 188 <enum>Qt::RightToLeft</enum> 189 </property> 190 <property name="styleSheet"> 191 <string notr="true">width: 50%;</string> 192 </property> 193 <property name="readOnly"> 194 <bool>false</bool> 195 </property> 196 <property name="html"> 197 <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; 198&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; 199p, li { white-space: pre-wrap; } 200&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'.SF NS Text'; font-size:13pt; font-weight:400; font-style:normal;&quot;&gt; 201&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 202 </property> 203 </widget> 204 <widget class="QPushButton" name="back"> 205 <property name="geometry"> 206 <rect> 207 <x>160</x> 208 <y>100</y> 209 <width>41</width> 210 <height>32</height> 211 </rect> 212 </property> 213 <property name="font"> 214 <font> 215 <weight>50</weight> 216 <italic>false</italic> 217 <bold>false</bold> 218 <underline>false</underline> 219 <strikeout>false</strikeout> 220 <kerning>true</kerning> 221 </font> 222 </property> 223 <property name="text"> 224 <string><</string> 225 </property> 226 <property name="checkable"> 227 <bool>false</bool> 228 </property> 229 <property name="checked"> 230 <bool>false</bool> 231 </property> 232 <property name="autoDefault"> 233 <bool>false</bool> 234 </property> 235 <property name="default"> 236 <bool>false</bool> 237 </property> 238 <property name="flat"> 239 <bool>false</bool> 240 </property> 241 </widget> 242 </widget> 243 <resources/> 244</ui> 245

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

tiitoi

2019/07/11 11:06

どのように全画面表示にしたのでしょうか? ウィンドウサイズを固定した場合は、ウィンドウの最大化ボタン □ は押せなくなっているはずですよ。
退会済みユーザー

退会済みユーザー

2019/07/12 05:51

僕の環境では最大化ボタンは押せましたよ
yuki23

2019/07/12 11:33

当方 Windows ですが再現しません。もしかすると Mac 特有の現象なのかもしれませんね。 UIファイルの内容を追記してもらえますか?
退会済みユーザー

退会済みユーザー

2019/07/13 01:18

わかりました
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問