--===============1385663892== Content-Type: multipart/signed; boundary="nextPart1288993.HFmu8UNVRu"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1288993.HFmu8UNVRu Content-Type: multipart/mixed; boundary="Boundary-01=_9eMwKvoWQt2hi6j" Content-Transfer-Encoding: 7bit --Boundary-01=_9eMwKvoWQt2hi6j Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I'm currently working on some innovative interface layout. For this, I want= to=20 put some widget inside a tab bar. This works reasonably well with=20 QTabWidget::setCornerWidget, but the inserted widget does not completely fi= ll=20 the free area of the QTabBar (see attached example code, can be compiled wi= th=20 QMake). Setting the horizontal size policy of the inserted widget to Minimum The question is: Is there a way to insert a widget into a QTabBar in such a= =20 way that it always fills the free area completely? Greetings Stefan --Boundary-01=_9eMwKvoWQt2hi6j Content-Type: text/x-c++src; charset="UTF-8"; name="tabbartest.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tabbartest.cpp" #include #include #include #include int main(int argc, char** argv) { QApplication app(argc, argv); //create a dummy tab widget QTabWidget tabWidget; tabWidget.addTab(new QLabel("This is page 1."), "Page 1"); tabWidget.addTab(new QLabel("This is page 2."), "Page 2"); tabWidget.addTab(new QLabel("This is page 3."), "Page 3"); //create a dummy progress bar QProgressBar* progressBar = new QProgressBar; progressBar->setRange(0, 100); progressBar->setValue(60); //the interesting part: put the progress bar inside the tab bar tabWidget.setCornerWidget(progressBar, Qt::TopRightCorner); //The result looks good until one stretches the window. The progressbar just uses its size hint, but I would like it to totally fill the possible area. Is this possible? tabWidget.show(); return app.exec(); } --Boundary-01=_9eMwKvoWQt2hi6j-- --nextPart1288993.HFmu8UNVRu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkrAx8QACgkQ3trDvSmezKgtOwCfWUOlP+sAn9Ba9dXN1TrNoU3B uiAAniTNsP5SoVoysWw+v3jJVsbW5es+ =g6X8 -----END PGP SIGNATURE----- --nextPart1288993.HFmu8UNVRu-- --===============1385663892== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1385663892==--