Re: [Interest] QTabWidget scroll buttons
On Tue, Mar 26, 2019 at 09:19:37PM +, Murphy, Sean wrote: > > > there doesn't appear to be an easy way to add widgets in the tab widget's > > tab bar. > > > > QTabWidget::tabBar(), layout(), addItem() ? > > I meant "easy" in the sense of a functions like these (which don't exist): > QToolButton* QTabWidget::leftScrollButton() QToolButton* > QTabWidget::rightScrollButton() > > Unless I'm missing something, both your tabBar()->layout()->addItem() > suggestion > and your previous email about drilling down and finding the QToolButton > children > aren't part of the QTabWidget documented API, which means they could change > how > those are implemented in a future version of Qt. You are completely right, you would be relying on an implementation detail that in principle could change in future. However, that's an area that hasn't changed for ages, the overall layout probably not since Qt 2(!). I don't think this is likely to change. Sure, a dedicated QToolButton* QTabWidget::leftScrollButton() would be more convenient for you. Andre' ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
> > there doesn't appear to be an easy way to add widgets in the tab widget's > tab bar. > > QTabWidget::tabBar(), layout(), addItem() ? I meant "easy" in the sense of a functions like these (which don't exist): QToolButton* QTabWidget::leftScrollButton() QToolButton* QTabWidget::rightScrollButton() Unless I'm missing something, both your tabBar()->layout()->addItem() suggestion and your previous email about drilling down and finding the QToolButton children aren't part of the QTabWidget documented API, which means they could change how those are implemented in a future version of Qt. Sean This message has been scanned for malware by Forcepoint. www.forcepoint.com ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
On Tue, Mar 26, 2019 at 03:02:42PM +, Murphy, Sean wrote: > Honestly, an decent solution would be where if I could modify the tab widget's > tab bar to never show the scroll buttons (easy enough with the > usesScrollButtons > property), and instead always show the tool button. This looks harder though > since > there doesn't appear to be an easy way to add widgets in the tab widget's tab > bar. QTabWidget::tabBar(), layout(), addItem() ? Andre' ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
On Tue, Mar 26, 2019 at 11:15:19AM -0400, Matthew Woehlke wrote: > Instead, you might want to look at e.g. KDevelop, Konqueror or Falkon > (maybe Qt Creator can be added to that list also?) to see what they do. Qt Creator is notorious for not using tabs. Or at least it was notorious, looks like Wikipedia stopped fuzzing about it in 2017. But it's still in the FAQ: https://doc.qt.io/qtcreator/creator-faq.html Andre' ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
On Tue, Mar 26, 2019 at 01:56:00PM +, Murphy, Sean wrote: > Is there a way to get access to the scroll buttons on a QTabWidget to > customize > them? You can always check where the code driving the feature hides in the code and then drill down using findChild() in the application. From a quick look there are direct QToolButton children in the QTabBar that might be related in this case. Andre' ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
> This works for me, and the button is small 16x16. > > m_TheTabWidget->setCornerWidget(bp1); You know, I saw that function and for some reason switched it in my head to be talking about the corner cell in a QTableWidget, not talking about a QTabWidget. Apparently I need more caffeine today... Thanks, I'll give this a try! Sean This message has been scanned for malware by Forcepoint. www.forcepoint.com ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
On 03/26/2019 11:02 AM, Murphy, Sean wrote: [External] You could add a tool-button with said popup menu associated to it to the right of the tab widget (e.g. Firefox does this). This would have the advantage from my PoV that it's always there and works, regardless of how many tabs are open. I'll ask whether this would be acceptable. As I mentioned in response to William Crocker, I'm currently losing the battle that the requested idea is a bad idea. I do not know about the button, but the pop-up could be a window with scrollable contents. And, as with all windows, your app will remember the size/location and put it back where they left it, on subsequent uses. One issue with the tool button idea will just be finding an acceptable location for it. There are already other widgets surrounding the QTabWidget in our UI, so squeezing it in without having to rearrange everything else could be an issue. This works for me, and the button is small 16x16. m_TheTabWidget->setCornerWidget(bp1); Honestly, an decent solution would be where if I could modify the tab widget's tab bar to never show the scroll buttons (easy enough with the usesScrollButtons property), and instead always show the tool button. This looks harder though since there doesn't appear to be an easy way to add widgets in the tab widget's tab bar. Sean This message has been scanned for malware by Forcepoint. www.forcepoint.com ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
> You could add a tool-button with said popup menu associated to it to the > right of the tab widget (e.g. Firefox does this). This would have the > advantage from my PoV that it's always there and works, regardless of > how many tabs are open. I'll ask whether this would be acceptable. As I mentioned in response to William Crocker, I'm currently losing the battle that the requested idea is a bad idea. One issue with the tool button idea will just be finding an acceptable location for it. There are already other widgets surrounding the QTabWidget in our UI, so squeezing it in without having to rearrange everything else could be an issue. Honestly, an decent solution would be where if I could modify the tab widget's tab bar to never show the scroll buttons (easy enough with the usesScrollButtons property), and instead always show the tool button. This looks harder though since there doesn't appear to be an easy way to add widgets in the tab widget's tab bar. Sean This message has been scanned for malware by Forcepoint. www.forcepoint.com ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
> > A request has come in to allow the user to right-click on the scroll > > buttons, > which would then open a popup menu of all open tab names which they can > select from, and then I could just set the selected tab as the currentIndex(). > But I don't see anything on https://doc.qt.io/qt-5/qtabwidget.html that talks > about those scroll buttons beyond just the usesScrollButtons property. So > I'm not sure how to specifically trigger off from a right click on the scroll > arrows themselves... > > > > What will that pop-up menu look like if there are 100 tabs open. I 100% agree with where you're headed with that question. I don't like this idea for a multitude of reasons: - the tabs tend to have long filenames, so not the sort of thing that fits nicely in a popup, even if there aren't many of them - the quantity issue you brought up - I don't think many people would expect that you could right-click on one of those buttons to bring up a contextual menu from a UI design perspective That being said, right now the request is the request so even though I've raised my objections to it, I'm still tasked with fulfilling it at this point... Sean This message has been scanned for malware by Forcepoint. www.forcepoint.com ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] 3DTouch under iOS
Feel free to add a request at: https://bugreports.qt.io/browse/QTBUG-74049 Sent: Monday, March 25, 2019 at 9:47 AM From: "Jason H" To: "Roman Wüger" Cc: "Qt Project MailingList" Subject: Re: [Interest] 3DTouch under iOS I don't think this is possible. We've recently had threads about the lack of mobile development as of late. It's not impossible though, I think you'll have to DIY in Objective-C, but that means learning iOS and Objective-C... Sent: Monday, March 25, 2019 at 5:34 AM From: "Roman Wüger" To: "Qt Project MailingList" Subject: [Interest] 3DTouch under iOS Hi, Regarding the document https://developer.apple.com/documentation/uikit/peek_and_pop/add_home_screen_quick_actions I only need to add a list in the Info.plist for a static 3D Touch menu But how can I respond to triggered quick actions from a Qt application. Any hints? Regards Roman ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
You could add a tool-button with said popup menu associated to it to the right of the tab widget (e.g. Firefox does this). This would have the advantage from my PoV that it's always there and works, regardless of how many tabs are open. -Marian Am 26.03.19 um 14:56 schrieb Murphy, Sean: > Is there a way to get access to the scroll buttons on a QTabWidget to > customize them? > > The issue we're having is that we have a UI that uses a tab widget for > displaying file contents - one tab per open file. Once a user opens enough > files/tabs, the tab scroll buttons pop up (so far so good), but then the user > keeps opening more tabs. Eventually they have enough open that it can take > quite a while to navigate between open tabs since each click on a scroll > button only shifts the visible tabs over by one tab per click. For example, > if they have 10 tabs open, and because of screen size, tab elide mode, etc., > they can only see 3 tabs at a time, if they are currently looking at the 10th > tab, but want to then go view the 1st, they have to click 7 times to get over > to the first tab. > > A request has come in to allow the user to right-click on the scroll buttons, > which would then open a popup menu of all open tab names which they can > select from, and then I could just set the selected tab as the > currentIndex(). But I don't see anything on > https://doc.qt.io/qt-5/qtabwidget.html that talks about those scroll buttons > beyond just the usesScrollButtons property. So I'm not sure how to > specifically trigger off from a right click on the scroll arrows themselves... > > Sean > > > This message has been scanned for malware by Forcepoint. www.forcepoint.com > ___ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QTabWidget scroll buttons
Is there a way to get access to the scroll buttons on a QTabWidget to customize them? The issue we're having is that we have a UI that uses a tab widget for displaying file contents - one tab per open file. Once a user opens enough files/tabs, the tab scroll buttons pop up (so far so good), but then the user keeps opening more tabs. Eventually they have enough open that it can take quite a while to navigate between open tabs since each click on a scroll button only shifts the visible tabs over by one tab per click. For example, if they have 10 tabs open, and because of screen size, tab elide mode, etc., they can only see 3 tabs at a time, if they are currently looking at the 10th tab, but want to then go view the 1st, they have to click 7 times to get over to the first tab. A request has come in to allow the user to right-click on the scroll buttons, which would then open a popup menu of all open tab names which they can select from, and then I could just set the selected tab as the currentIndex(). But I don't see anything on https://doc.qt.io/qt-5/qtabwidget.html that talks about those scroll buttons beyond just the usesScrollButtons property. So I'm not sure how to specifically trigger off from a right click on the scroll arrows themselves... What will that pop-up menu look like if there are 100 tabs open. Sean This message has been scanned for malware by Forcepoint. www.forcepoint.com ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
[Interest] QTabWidget scroll buttons
Is there a way to get access to the scroll buttons on a QTabWidget to customize them? The issue we're having is that we have a UI that uses a tab widget for displaying file contents - one tab per open file. Once a user opens enough files/tabs, the tab scroll buttons pop up (so far so good), but then the user keeps opening more tabs. Eventually they have enough open that it can take quite a while to navigate between open tabs since each click on a scroll button only shifts the visible tabs over by one tab per click. For example, if they have 10 tabs open, and because of screen size, tab elide mode, etc., they can only see 3 tabs at a time, if they are currently looking at the 10th tab, but want to then go view the 1st, they have to click 7 times to get over to the first tab. A request has come in to allow the user to right-click on the scroll buttons, which would then open a popup menu of all open tab names which they can select from, and then I could just set the selected tab as the currentIndex(). But I don't see anything on https://doc.qt.io/qt-5/qtabwidget.html that talks about those scroll buttons beyond just the usesScrollButtons property. So I'm not sure how to specifically trigger off from a right click on the scroll arrows themselves... Sean This message has been scanned for malware by Forcepoint. www.forcepoint.com ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Build problems, Android app on Qt 5.12.2
Whenever I've seen that, it's been an issue with config/install path. For example you're saying API 28, but you're clearly referencing 29 > Sent: Monday, March 25, 2019 at 10:01 PM > From: "Nelson, Michael" > To: "interest@qt-project.org" > Subject: [Interest] Build problems, Android app on Qt 5.12.2 > > Questions: > 1) What successful tool sets are working for others to build Qt apps for > Android? > 2) Any idea what might be causing the following problem? > > Using these tools: >Qt 5.12.2 >Android SDK 28 >Android SDK Tools 26.1.1 >Android NDK r19c >Java jdk1.8.0_172 > > androiddeployqt fails: > > :compileDebugAidl FAILED > > FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':compileDebugAidl'. > > java.io.IOException: com.android.ide.common.process.ProcessException: Error > > while executing process > > C:\Users\nelson\AppData\Local\Android\Sdk\build-tools\29.0.0-rc1\aidl.exe > > with arguments ... > > Thanks, > Mike > > Please be advised that this email may contain confidential information. If > you are not the intended recipient, please notify us by email by replying to > the sender and delete this message. The sender disclaims that the content of > this email constitutes an offer to enter into, or the acceptance of, any > agreement; provided that the foregoing does not invalidate the binding effect > of any digital or other electronic reproduction of a manual signature that is > included in any attachment. > ___ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Qt3D: Support for loading binary glTF 2.0 files (*.glb)
Thank you for your quick reponses. On Tue, Mar 26, 2019, 09:53 Sean Harmer via Interest < interest@qt-project.org> wrote: > Hi, > > We're working on complete glTF 2 support in Kuesa which is built on top of > Qt 3D here: > > https://github.com/KDAB/kuesa > > Binary support is one of the next things on the backlog. Other missing > features at present are morph target animations and multiple texture > coordinate sets. These are planned for our next sprint. > > Cheers, > > Sean > On 25/03/2019 22:29, Marcin Musial wrote: > > Hi, > > Are there any plans for 5.13 to support loading also binary glTF 2.0 files > (*.glb)? Qt3DRender::QSceneLoader is expecting JSON glTF text files only. > > ___ > Interest mailing > listInterest@qt-project.orghttps://lists.qt-project.org/listinfo/interest > > -- > Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK > KDAB (UK) Ltd, a KDAB Group company > Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090 > Mobile: +44 (0)7545 140604 > KDAB - Qt Experts > > ___ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Qt3D: Support for loading binary glTF 2.0 files (*.glb)
Hi, We're working on complete glTF 2 support in Kuesa which is built on top of Qt 3D here: https://github.com/KDAB/kuesa Binary support is one of the next things on the backlog. Other missing features at present are morph target animations and multiple texture coordinate sets. These are planned for our next sprint. Cheers, Sean On 25/03/2019 22:29, Marcin Musial wrote: Hi, Are there any plans for 5.13 to support loading also binary glTF 2.0 files (*.glb)? Qt3DRender::QSceneLoader is expecting JSON glTF text files only. ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest -- Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK KDAB (UK) Ltd, a KDAB Group company Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090 Mobile: +44 (0)7545 140604 KDAB - Qt Experts ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Qt3D: Support for loading binary glTF 2.0 files (*.glb)
Hi, I don't know about *.gl, but maybe you will be able to find related information in glTF 2.0 support discussion https://bugreports.qt.io/browse/QTBUG-61258 if you haven't seen it yet. вт, 26 мар. 2019 г. в 01:30, Marcin Musial : > Hi, > > Are there any plans for 5.13 to support loading also binary glTF 2.0 files > (*.glb)? Qt3DRender::QSceneLoader is expecting JSON glTF text files only. > ___ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest